Skip to content

Help me #300

Answered by Omokami
GoldTaro asked this question in Q&A
Dec 18, 2024 · 1 comment
Discussion options

You must be logged in to vote

const messageBody = beginCell()
.storeUint(0x0f8a7ea5, 32)
.storeUint(0, 64)
.storeCoins(5001) //Enter Jetton value instead of 5001.
.storeAddress(Address.parse(toAddress))
.storeAddress(Address.parse(toAddress))
.storeBit(0)
.storeCoins(0)
.storeBit(0)
.endCell()

const internalMessage = internal({
    to: jettonWalletAddress,
    value: toNano('1'),                                               //The amount of fee for sending Jetton
    bounce: true,
    body: messageBody
})

const body = wallet.createTransfer({
    seqno,
    secretKey,
    messages: [internalMessage]
})

const externalMessage = external({
    to: address,
    init: neededInit,
    body
})

const externalMessageCell = b…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GoldTaro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants