Skip to content

Commit 65a37fa

Browse files
improve transaction processing (#741)
Co-authored-by: Aliaksandr Bahdanau <a.bahdanau@pixelplex.io>
1 parent 50cf98e commit 65a37fa

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/develop/dapps/asset-processing/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ main();
178178
7. Service should regularly poll the [getTransactions](https://toncenter.com/api/v2/#/transactions/get_transactions_getTransactions_get) method for the `wallet` contract. Matching confirmed transactions with the outgoing payments by (`destination_address`, `value`, `comment`) allows to mark payments as finished; detect and show the user the corresponding transaction hash and lt (logical time).
179179
8. Requests to `v3` of `high-load` wallets have an expiration time equal to 60 seconds by default. After that time unprocessed requests can be safely resent to the network (see steps 3-6).
180180

181+
:::caution
182+
If `value` attached is too small transaction can get aborted with error `cskip_no_gas`. In this case Toncoins will be transferred successfully but no logic on other side will be executed (TVM won't even launch). About gas limits you can read more [here](/develop/howto/blockchain-configs#param-20-and-21).
183+
:::
184+
181185
### Get transaction id
182186

183187
It can be unclear that to get more information on transaction user must scan blockchain through [getTransactions](https://toncenter.com/api/v2/#/transactions/get_transactions_getTransactions_get) function.

docs/develop/dapps/asset-processing/jettons.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ To send **comment** you need setup `forward payload`. Set **first 32 bits to 0x0
238238

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

241+
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.
242+
241243

242244
:::tip
243245
Check [best practices](/develop/dapps/asset-processing/jettons#best-practices) for _"send jettons with comments"_ example.
@@ -1199,4 +1201,4 @@ You can find a list of SDKs for various languages (js, python, golang, C#, Rust,
11991201

12001202
* [Payments Processing](/develop/dapps/asset-processing/)
12011203
* [NFT processing on TON](/develop/dapps/asset-processing/nfts)
1202-
* [Metadata parsing on TON](/develop/dapps/asset-processing/metadata)
1204+
* [Metadata parsing on TON](/develop/dapps/asset-processing/metadata)

0 commit comments

Comments
 (0)