You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m currently working on a project where I need to transfer HMSTR tokens from one address to another on TON blockchain.
I found this on TON docs how can I send Jetton Tokens? Is it right or anyone already work on this can you please share the script.
Thanks best regards
const payload = await jettonWallet.createTransferBody({
jettonAmount: jettonAmount, // Amount of Jettons to transfer
toAddress: new TonWeb.utils.Address(RECEIVER_WALLET_ADDRESS), // Recipient's wallet
forwardAmount: forwardAmount, // TON to forward with the transfer
forwardPayload: comment, // Transfer comment
responseAddress: walletAddress, // Address to receive unused TONs
});
// Step 4: Create and send the transfer message
const transfer = await wallet.methods
.transfer({
secretKey: privateKey,
toAddress: JETTON_WALLET_ADDRESS, // Jetton wallet (sender)
amount: tonAmount, // TONs attached to transfer message
seqno: seqno,
payload: payload, // Payload with Jetton transfer details
sendMode: 3, // Send mode 3: allow fees and remaining balance deductions
})
.send();
The text was updated successfully, but these errors were encountered:
I’m currently working on a project where I need to transfer HMSTR tokens from one address to another on TON blockchain.
I found this on TON docs how can I send Jetton Tokens? Is it right or anyone already work on this can you please share the script.
Thanks best regards
The text was updated successfully, but these errors were encountered: