Skip to content

Commit

Permalink
feat: clarified jetton errors information (#771)
Browse files Browse the repository at this point in the history
Co-authored-by: Aliaksandr Bahdanau <a.bahdanau@pixelplex.io>
  • Loading branch information
pixelplex and a-bahdanau authored Sep 24, 2024
1 parent e1c7483 commit 7d34aaa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/develop/dapps/asset-processing/jettons.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,13 @@ This transfer require some ton coins for **fees** and, optionally, **transfer no

To send **comment** you need setup `forward payload`. Set **first 32 bits to 0x0** and append **your text**.

`forward payload` is sent in `transfer notification` internal message. It will be generated only if `forward amount` > 0.
`forward payload` is sent in `transfer notification` internal message. It will be generated only if `forward_ton_amount` > 0. Recommended `forward_ton_amount` for jetton transfer with comment is 1 nanoton.

Finally, to retrieve `Excess` message you must set up `response destination`.

Sometimes you may encounter a `709` error when sending jetton. It says that the value of the toncoin attached to the message is not enough to send it. Make sure that `Toncoin > to_nano(TRANSFER_CONSUMPTION) + forward_ton_amount`. `TRANSFER_CONSUMPTION` in most cases may be 0.037 if the `forward_payload` is not too large. Also don't forget to attach enough `forward_ton_amount` or you can encounter a `cskip_no_gas` error if attached value too small.

Sometimes you may encounter a `709` error when sending jetton. It says that the value of the toncoin attached to the message is not enough to send it. Make sure that `Toncoin > to_nano(TRANSFER_CONSUMPTION) + forward_ton_amount`. `TRANSFER_CONSUMPTION` in most cases may be 0.037 if the `forward_payload` is not too large.

You may also encounter the error `cskip_no_gas`, which indicates that the jettons were successfully transferred, but no other calculations were performed. This is a common situation when the value of `forward_ton_amount` is equal to 1 nanoton.

:::tip
Check [best practices](/develop/dapps/asset-processing/jettons#best-practices) for _"send jettons with comments"_ example.
Expand Down

0 comments on commit 7d34aaa

Please sign in to comment.