README
eth_tx_sender
Utility for automating the sending of transactions to the Ethereum blockchain, with the possibility of subsequent modification and tracking the status, without time limit
Installation
Use the package manager npm to install eth_tx_sender.
npm install eth_tx_sender
Usage
const TxSender = require('eth_tx_sender');
//Simle usage
txSender.SendTx({to:'0xAC35682eF3eCecF0662d245D5a2429CB7C57bA5B',amount: 'full', privateKey: '0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'});
//or
txSender.SendTx({to:'0xAC35682eF3eCecF0662d245D5a2429CB7C57bA5B',amount: 'full', privateKey: '0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'}).wait().then(console.log, console.log);
//ERC20
TxSender.sendERC20({
to:'0xAC35682eF3eCecF0662d245D5a2429CB7C57bA5B',
amount:'full',
privateKey:"0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",
token:'0xdac17f958d2ee523a2206206994597c13d831ec7'
});
//test network
txSender.init( {
web3Provider: 'https://ropsten.infura.io/v3/',
chain: 'ropsten',
startGasPrice: 1*1000000000
});
txSender.SendTx({to:'0xAC35682eF3eCecF0662d245D5a2429CB7C57bA5B',amount: 'full', privateKey: '0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'});
//BSC test network
sender.init( {
web3Provider: 'https://data-seed-prebsc-1-s1.binance.org:8545/',
chain: 'bnbt',
startGasPrice: 10*1000000000
});
txSender.SendTx({to:'0xAC35682eF3eCecF0662d245D5a2429CB7C57bA5B',amount: 'full', privateKey: '0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF'});