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

What are the TON Keeper Token Transfer steps? #359

Open
0xBeycan opened this issue Jan 12, 2025 · 0 comments
Open

What are the TON Keeper Token Transfer steps? #359

0xBeycan opened this issue Jan 12, 2025 · 0 comments

Comments

@0xBeycan
Copy link

I follow the steps below for token transfer but I don't get the same txs as in TON Keeper. Where am I missing? For example, TONKeeper tx shows fee while mine shows refund. You can also see the txs on the scanner.

TONKeeper tx: https://testnet.tonscan.org/tx/d8b6ef5bed84397861e8b3d0d3e4e4e2547d5d2cbec2311a53ceb0cb0be4ca60

My tx: https://testnet.tonscan.org/tx/29aec5b992b3881d7752ef8a08d4b7bde4006853edb1de10786eba8afa18a89d

        const [formattedAmount, senderJettonWallet] = await Promise.all([
            this.formatAmount(amount),
            this.getJettonWalletAddress(sender)
        ])

        const cell = beginCell()
            .storeUint(OpCodes.JETTON_TRANSFER, 32)
            .storeUint(0, 64)
            .storeCoins(formattedAmount)
            .storeAddress(Address.parse(receiver))
            .storeAddress(Address.parse(sender))
            .storeBit(0)
            .storeCoins(0)

        if (body) {
            cell.storeBit(1).storeRef(beginCell().storeUint(0, 32).storeStringTail(body).endCell())
        } else {
            cell.storeBit(0)
        }

        const internalMessage = internal({
            to: senderJettonWallet,
            body: cell.endCell(),
            value: toNano('0.05'),
            bounce: true
        })
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

1 participant