TON Provider
Connect with the Wallet
// connect wallet
await ton?.connectWallet();// the tonProof must be a hex string
const res = await tomo_ton.connect({
tonProof: Buffer.from('your challenge', 'utf8').toString('hex'),
});
//At the dapp backend, check the tonProof res
const { tonProof } = res;// You must use the Tomo TON provider to connect the testnet.
// Other wallet providers through TON Connect do not work.
const res = await tomo_ton.connect({
network: 'testnet'
});Query Methods
Sending Methods
Payload for TON transaction
Payload for Jetton transaction
Last updated