Giter Site home page Giter Site logo

donniexu / batch_transfer_in_heco Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trytobest/batch_transfer_in_heco

0.0 0.0 0.0 104 KB

eth以太坊批量转账,用于heco测试网上的批量转账,以太坊上需要稍加修改。

Python 100.00%

batch_transfer_in_heco's Introduction

made with heart by TRYtoBest
由于智能合约批量转账佣金实在太贵,只能写个小脚本,现在分享给大家!如有用,请大家多多支持!~

使用本脚本导致转账错误的资金损失概不负责
功能:
用于eth/heco/bsc等链的批量转账,一转多。每个地址用空格区分 或者直接从记事本复制(一行一收币地址)。
**建议添加对应币种合约ABI(虽然基本功能都差不多)。

本脚本仅用于heco测试网,如需要在其他主网上转账,请修改如下内容。
如何运行于其他支持evm链
第8行 修改HTTPProvider

w3 = Web3(HTTPProvider("https://http-testnet.hecochain.com"))#heco测试网

第9行 修改合约地址

usdt_contract = Web3.toChecksumAddress('0x04F535663110A392A6504839BEeD34E019FdB4E0')#usdt合约地址heco测试网

第62行 修改为对应chainid,以太坊则直接删除即可

'chainId':256 #对应链ID

第88行 修改URL至目标链浏览器如:https://etherscan.io/tx/

put_html('<a target="view_window" href=\"https://testnet.hecoinfo.com/tx/'+Web3.toHex(txn_hash)+'\">查看转账信息</a>')

然后按照如下方法使用


使用方法(heco测试网)
python版本:3.7
需要 web3、eth_account、pywebio模块

使用pip3命令安装模块:

pip3 install -r requirements_transfer_token.txt

输入私钥:

在当前目录的private_key 中输入私钥,替换掉私钥

执行一下命令:

python3 transfer_token.py

在弹窗中输入相应信息
按照提示进行操作 transfer_token1.png 多个地址如下图所示排列复制入对话框 transfer_token1_1.png 确认转账类型(有二次确认转账信息) transfer_token2.png 转账效果 transfer_token_check.png

batch_transfer_in_heco's People

Contributors

trytobest avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.