Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gmh5225/eip1559-sender
EIP1559-sender is a Go-based Ethereum transaction sending tool specifically designed to support the EIP-1559 gas fee mechanism.
https://github.com/gmh5225/eip1559-sender
eip-1559 ethereum transaction
Last synced: 14 days ago
JSON representation
EIP1559-sender is a Go-based Ethereum transaction sending tool specifically designed to support the EIP-1559 gas fee mechanism.
- Host: GitHub
- URL: https://github.com/gmh5225/eip1559-sender
- Owner: gmh5225
- Created: 2024-10-19T06:36:12.000Z (28 days ago)
- Default Branch: main
- Last Pushed: 2024-10-20T18:24:41.000Z (27 days ago)
- Last Synced: 2024-11-02T00:06:40.879Z (14 days ago)
- Topics: eip-1559, ethereum, transaction
- Language: Go
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EIP1559-sender
EIP1559-sender is a Go-based Ethereum transaction sending tool specifically designed to support the EIP-1559 gas fee mechanism.
## Basic concepts
- ``maxFeePerGas >= (base Fee + priority Fee)``
- ``gas Fee = min(base Fee + priority Fee, maxFeePerGas) * gas limit``
- ``priority Fee = min(maxPriorityFeePerGas, maxFeePerGas - base Fee)``## Features
- Utilizes the `go-ethereum` client library
- Implements EIP-1559's `DynamicFeeTx` transaction type
- Automatic estimation of `gasLimit`, `baseFee`, and `maxPriorityFeePerGas`
- Calculation of optimal `maxFeePerGas`
## Dependencies
- ``go get github.com/ethereum/go-ethereum``## Install
``
go install github.com/gmh5225/[email protected]
``## Uninstall
``
where/which EIP1559-sender
``## Clean module cache
``
go clean -modcache
``## Usage
```
eip1559_sender -privateKey ... -receiver 0x... -rpcURL https://... -chainID 421614 -tokenValue 0.1
```## Example output
```
Connected to the RPC URL
Using specified chain ID: 421614
Sender's address: 0x059dC4EEe9328A9f333a7e813B2f5B4A52ADD4dF
Receiver address: 0xe091701aC9816D48248887147B41AE312d26e1C3
nonce: 31
Transfer amount: 0.001000 tokens (equivalent to 1000000000000000 Wei)
Base fee: 100000000
Suggested tip cap: 0
Max fee per gas: 200000000
Estimated gas limit: 25345
Transaction sent successfully! Transaction hash: 0x11a34e46dbc5c0af56e724b88ec12fbf041f0cc70b28a7de10bfd8433ea71c62
Please check the transaction status on the blockchain explorer
```