Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/contract/token/jetton
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import TonWeb from "tonweb";
const tonweb = new TonWeb(EQAdWzm1d_Jxqq-9_CEXIQ04zwI2-IYh3fFtG1PYi9V0rW5w);
const jettonMinter = new TonWeb.token.jetton.JettonMinter(tonweb.provider, {address: "<https://minter.ton.org>"});
const data = await jettonMinter.getJettonData(yangi_token);
console.log('Total supply:', data.totalSupply.toString(1000000000));
console.log('URI to off-chain metadata:', data.jettonContentUri);