Skip to content

Instantly share code, notes, and snippets.

View immujahidkhan's full-sized avatar
🏠
Working from home

Mujahid Khan immujahidkhan

🏠
Working from home
View GitHub Profile
@gleba
gleba / jetton.js
Last active September 25, 2024 11:26
TON Jetton example
const TonWeb = require("tonweb");
const utils = require("tonweb/src/utils");
const NftUtils = require("tonweb/src/contract/token/nft/NftUtils");
const Cell = TonWeb.boc.Cell;
const { JettonMinter, JettonWallet } = TonWeb.token.jetton;
const jettonContentUri = 'https://files.raevskyschool.ru/coin.json';
async function doit() {
const tonweb = new TonWeb(new TonWeb.HttpProvider('https://testnet.toncenter.com/api/v2/jsonRPC', { apiKey: "get here: https://t.me/tontestnetapibot" }));
const WalletClass = tonweb.wallet.all['v3R2'];