Miscellaneous scripts for blockchain
nodejs
python-bitcoinlib
- clone repo and install dependencies
$ git clone https://github.com/sc0Vu/tron.misc.git
$ cd tron.misc
$ npm install // yarn install
- copy and update
.env
$ cp .env.example .env
$ vim .env
ACCOUNT=
PRIVATE_KEY=
NODE_URI=https://api.shasta.trongrid.io # rpc shasta
EVENT_URI=https://api.shasta.trongrid.io # rpc shasta
USDT=
- execute script
$ node sendTrx.js 1
or
$ node sendTrc20.js 1
This script aims transfering tron token to the ACCOUNT
.
This script aims transfering trc20 token to the ACCOUNT
.
Remember to deploy trc20 token first and make sure you have enough energy and bandwidth.
$ ./doublespend.py --txid xxxx xxxx 0.001 -n
$ ./cpfp.py --txid xxxx xxxx 0.001 -n
MIT