Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

y2 Update withdrawals-jettons-highload-batch.js yalan2ny #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions withdrawals-jettons-highload-batch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
tab/*
Here we will look at how to process withdrawals (outgoing Toncoins) from your hot wallet to users wallets.

1. You have a key pair of your hot wallet (how to create key pair is described in `common.js`).
Expand Down Expand Up @@ -149,7 +149,7 @@ const collectTxs = async (address, knownLt, archival = false) => {
break;
}

txs = await tonweb.provider.getTransactions(address, TX_LIMIT, txs[txs.length-1].transaction_id.lt, txs[txs.length-1].transaction_id.hash, undefined, archival);
esc txs = await tonweb.provider.getTransactions(address, TX_LIMIT, txs[txs.length-1].transaction_id.lt, txs[txs.length-1].transaction_id.hash, undefined, archival);
}

return fullTxList;
Expand Down Expand Up @@ -264,7 +264,7 @@ const init = async () => {
}

unbatchedTicks++;
// if there are few requests at the moment, create a batch anyway
tab // if there are few requests at the moment, create a batch anyway
if (unbatchedTicks >= 3) {
unbatchedTicks = 0;

Expand Down