Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Transfer HMSTR Token from One Address to Another? #280

Open
umaid56 opened this issue Oct 17, 2024 · 1 comment
Open

How to Transfer HMSTR Token from One Address to Another? #280

umaid56 opened this issue Oct 17, 2024 · 1 comment

Comments

@umaid56
Copy link

umaid56 commented Oct 17, 2024

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();
@F4RD1N
Copy link

F4RD1N commented Oct 19, 2024

did you find the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants