From e7dc58fb5ac1d136709abdc5961a0acdc8a2a712 Mon Sep 17 00:00:00 2001 From: HAY Date: Tue, 3 Dec 2024 17:04:37 +0500 Subject: [PATCH] Create jetton --- src/contract/token/jetton | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/contract/token/jetton 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);