支持以太坊、幣安、火幣、Ok鏈等大批量一鍵空投實現(批量空投工具)


 智能合約寫空投兼容性差,一個項目對一個智能合約,多個項目不能復用。今天介紹下利用C#開發的支持以太坊、幣安、火幣、OK鏈等多個erc20的鏈,空投工具。利用Web3直接調用鏈和代幣的智能合約,兼容性好,通用性強。只需加載賬戶、添加代幣智能合約地址就可。待投的地址支持Excel批量導入,方便快捷。導入效率高。 QQ交流群:103446157

核心實現包括:查看合約授權額度,額度不夠進行授權。授權成功進行批量空投。

查看額度代碼:

web3 = new Web3(this.accountEnt.Url); Contract voteContract = web3.Eth.GetContract(ABI, contractAdd);//合約調用的ABI,合約地址 var sendResult = voteContract.GetFunction("allowance").CallAsync<BigInteger>( accountEnt.Address, spender); sendResult.Wait(); Console.WriteLine(sendResult.Result); decimal ethCount= Web3.Convert.FromWei(sendResult.Result, unitDecimal);

授權代碼:

 Account account = new Account(PrivateKey);
 web3 = new Web3(account, Url);
 Contract contract = web3.Eth.GetContract(ABI, contractAdd);
 BigInteger countEth = Web3.Convert.ToWei(amount, unitDecimal);
 var gasPrice = web3.Eth.GasPrice.SendRequestAsync();
  gasPrice.Wait();
var sendResult = contract.GetFunction("approve").SendTransactionAsync(accountEnt.Address, accountEnt.Address, countEth);
sendResult.Wait();

合約轉賬:

Account account = new Account(PrivateKey);
web3 = new Web3(account, Url);
                
                Contract voteContract = web3.Eth.GetContract(ABI, contractAdd);
var sendResult = contract.GetFunction("transferFrom").SendTransactionAsync(account.Address, account.Address, toAccount.Address, countEth);
                sendResult.Wait();

開發語言為c#,空投時多個線程同時空投,自動檢測地址的有效性。綠色開源,免安裝。

百度網盤: https://pan.baidu.com/s/1LTC12Eurrfs681FJPloktw 提取碼: 7789

 

 軟件還支持,查看賬戶的活躍度,包含賬戶主幣資金、代幣余額及鏈上的交易次數等。

單區塊交易筆數占2、3筆。



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM