Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sahilaujla/eth-and-erc20-scripts
Scripts for sending ERC20 tokens programatically, sending ETH programatically, sending max ETH, calculating gasFee and gasLimit before sending the transaction. Can be used to make bots.
https://github.com/sahilaujla/eth-and-erc20-scripts
bot erc20 eth gasfee
Last synced: about 1 month ago
JSON representation
Scripts for sending ERC20 tokens programatically, sending ETH programatically, sending max ETH, calculating gasFee and gasLimit before sending the transaction. Can be used to make bots.
- Host: GitHub
- URL: https://github.com/sahilaujla/eth-and-erc20-scripts
- Owner: SahilAujla
- Created: 2022-07-26T14:46:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-06T23:50:03.000Z (about 2 years ago)
- Last Synced: 2024-04-15T13:47:53.785Z (8 months ago)
- Topics: bot, erc20, eth, gasfee
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ETH & ERC20 scripts
`sendERC20.js` - script for ERC20 token transfers using ethers.js and estimating `gasLimit` ahead of time.
`sendMaxETH.js` - script for sending the maximum ETH that the user has in the account, it calculates the gasFees ahead of time and subtracts that from the total balance to get the max transferrable ETH value and transfers it to another account.
It shows how to calculate `gasFee` for a transaction before executing the transaction and how to programatically send ETH using ethers.js.