Open khalilmosavi opened 1 month ago
Recipient = airdrop-claim.ton Recipment Adress = UQB_Xaa9MZ7aDxpjh9dTPpftGh4ngbSKcSy2_7Q3ya6iKLai Fee=0٫045908856 TON Comment = 🔒Your funds are safe, once the transaction is confirmed, you will receive + 2472.00 DOGS Transaction = d93460a8 Sender address= UQBkGwdnsrCQdmSCOEOg8t9N-S9duDONmRQCALplwAw2JjZp
const senderPrivateKey = this.privateKey; let seqno = await this.wallet.methods.seqno().call(); if (seqno === null || seqno === undefined) { seqno = 0; } const amount = TonWeb.utils.toNano(tokenAmount); const payload = await jettonWallet.createTransferBody({ jettonAmount: amount, toAddress: new TonWeb.utils.Address(toAddress), forwardAmount: TonWeb.utils.toNano("0.1"), forwardPayload: new Uint8Array([ ...new Uint8Array(4), ...new TextEncoder().encode(memo), ]), responseAddress: new TonWeb.utils.Address(process.env.WALLET_ADDRESS), }); const result = await this.wallet.methods .transfer({ secretKey: senderPrivateKey, toAddress: tokenContractAddress, amount: TonWeb.utils.toNano("0.1"), // TON for transfer fees seqno: seqno, payload: payload, sendMode: 3, }) .send(); console.log("sendToken Transaction Result:", result); return { success: true, result }; } catch (error) { console.error("Error sending token:", error.message); throw new Error(error.message); }
}