Closed lokichoggio closed 1 month ago
Hi, yes, sending jetton requires some ton to pay gas fees
tokenWallet.BuildTransferPayloadV2(to, to, amountTokens, tlb.ZeroCoins, nil, nil)
tokenWallet.BuildTransferPayloadV2(to, to, amountTokens, tlb.ZeroCoins, nil, nil) the second param to can be w.WalletAddress(), mean excess gas back to from address. is it right?
another question, how can i get tx detail by tx hash, and determine whether the transaction is actually successful
Second parameter of BuildTransferPayloadV2
is response destination, yes, excess gas will be returned to it.
another question, how can i get tx detail by tx hash, and determine whether the transaction is actually successful
Just hash is not enough, you need to know the block and lt to get it using GetTransaction
method. Or you can ListTransactions
of account and find it. To know is it successful you can check exit codes of compute phase or state change, but it depends on contract.
code
ERROR(from https://tonviewer.com/): Transaction error Unable to complete the operation. I don't understand. Do we need to send Ton when sending jetton. and why your TON balance must be > 0.05 to send?