You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If you use your own API instance make sure the code contains this fix https://github.com/toncenter/ton-http-api/commit/a40a31c62388f122b7b7f3da7c5a6f706f3d2405
49
+
// If you use public toncenter.com then everything is OK.
`getTransactions` HTTP API method has a limit on the number of transactions it can return at a time.
4
+
5
+
Thus, you may sometimes need to make several requests to get all transaction of the account, the code [AccountSubscription.js](AccountSubscription.js) implements this.
Copy file name to clipboardExpand all lines: block/README.MD
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Transactions are made on the blockchain. Transactions are packaged into blocks.
4
4
5
-
In order to process new payments, you need to keep track of new blocks in the blockchain, get transactions from blocks, and find transactions that relate to your service.
5
+
In order to process new payments on multiple accounts, you need to keep track of new blocks in the blockchain, get transactions from blocks, and find transactions that relate to your service.
6
6
7
7
In TON blockchain, blocks go in parallel in masterchain and shardchains.
// If you use your own API instance make sure the code contains this fix https://github.com/toncenter/ton-http-api/commit/a40a31c62388f122b7b7f3da7c5a6f706f3d2405
76
-
// If you use public toncenter.com then everything is OK.
77
-
returntime;
78
-
}
79
-
80
-
if(!time)time=transactions[0].utime;
36
+
constonTransaction=async(tx)=>{
37
+
// If incoming message source address is defined and no outgoing messages - this is incoming Toncoins.
38
+
// ATTENTION: ALWAYS CHECK THAT THERE WERE NO OUTGOING MESSAGES.
81
39
82
-
for(consttxoftransactions){
40
+
if(tx.in_msg.source&&tx.out_msgs.length===0){
41
+
constvalue=tx.in_msg.value;// amount in nano-Toncoins (1 Toncoin = 1e9 nano-Toncoins)
0 commit comments