diff --git a/src/contract/token/jetton b/src/contract/token/jetton new file mode 100644 index 00000000..71e6ce48 --- /dev/null +++ b/src/contract/token/jetton @@ -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: ""}); +const data = await jettonMinter.getJettonData(yangi_token); +console.log('Total supply:', data.totalSupply.toString(1000000000)); +console.log('URI to off-chain metadata:', data.jettonContentUri);