Batch automatic collection

It is necessary to collect and manage the assets of multiple wallets when making wool and gold on Ethereum, BSC, Heco, Horseshoe, OK, Quark and other chains. Sometimes it is also necessary to turn on the computer for automatic collection.

The software implementation method first queries the account balance through the chain. If the account has a balance, and the balance is greater than the set minimum transfer amount, the program automatically initiates the collection operation, and transfers from the collected wallet to the collected wallet.

Address: https://www.bbctool.com

Platform currency check balance method:

 // get balance

var result = web3.Eth.GetBalance.SendRequestAsync(address);

result.Wait(); 

Token Token check balance method:

var balanceResult = voteContract.GetFunction("balanceOf").CallAsync<BigInteger>(address);
balanceResult.Wait();

Platform currency transfer method:

var sendTxHash = web3.Eth.TransactionManager.SendTransactionAsync(transferEntity.From, transferEntity.To, new HexBigInteger(countEth));
sendTxHash.Wait();

Token transfer method:

1

2

3

var sendResult = voteContract.GetFunction("transferFrom").SendTransactionAsync(tInput1, accountEnt.Address, toAccountEnt.Address, countEth);

              

sendResult.Wait();

 

Guess you like

Origin blog.csdn.net/mpegfour/article/details/125930205