This script allows you to send Jettons (TON tokens) from a V3R2 TON wallet to a recipient's address using a mnemonic-based wallet.
- 🏦 Initialize a Wallet V3R2 using a mnemonic phrase.
- 🔄 Retrieve the Jetton wallet address linked to the sender.
- 💸 Transfer Jettons to a recipient's address with a specified amount.
- ✅ Uses the TON API & TON SDK for interacting with the blockchain.
Make sure you have Node.js installed, then install the required packages:
npm install tonweb tonweb-mnemonic @ton/ton @orbs-network/ton-access
Before running the script, modify these values:
- Token Contract Address (
token_address
) - Recipient Address (
recipient_address
) - Amount of Jettons to Send (
amount
) - Mnemonic Array (
mnemonic_array
- your 24-word seed phrase)
Example:
const token_address = "EQCIiZ6b5fYSHLfCCAqi4KsIeqQAD3H_HSP-V5r4OUgTEuAs";
const recipient_address = "UQAisQIXtyaEfWfXyIMOAffNoKDLnUgejb1XdLNFH7mNDTVq";
const amount = "500"; // Amount in basic units
const mnemonic_array = ["word1", "word2", "word3", "...", "word24"];
Execute the script using Node.js:
node transfer.js
- Loads your mnemonic phrase and derives the wallet's public/private keys.
- Initializes a Wallet V3R2 (standard TON wallet version 3, revision 2).
- Finds the Jetton Wallet Address associated with your wallet.
- Sends the specified Jetton amount to the recipient.
- Waits for blockchain confirmation and prints the transaction status.
Current seqno: 5
Transaction executed successfully!
If there's an error, it will display the issue.
🔑 DO NOT share your mnemonic phrase! Your 24-word seed controls your funds.
- Consider using a secure environment to run this script.
- Ensure you double-check recipient addresses before sending Jettons.
- Use testnet for testing before sending on mainnet.
- TON API Documentation
- Jetton Standard
If you encounter any issues, feel free to ask for help in the TON Developer Community or open an issue.