Crates.io | eip-utils |
lib.rs | eip-utils |
version | 0.1.5 |
source | src |
created_at | 2021-03-11 10:39:31.927477 |
updated_at | 2021-03-12 08:51:37.89219 |
description | Ethereum Improvement Proposal helpers. |
homepage | |
repository | |
max_upload_size | |
id | 367237 |
size | 39,129 |
A command line utility tool which provides Ethereum Improvement Proposals features.
git clone https://github.com/abdelhamidbakhta/eip-utils.git
cargo install --path=eip-utils eip-utils
eip-utils --help
Print link to extensive list of EIP-1559 resources
USAGE:
eip-utils eip1559-resources
# Example
eip-utils eip1559-resources
# Output
https://hackmd.io/@timbeiko/1559-resources
Compute base fee from parent block header
USAGE:
eip-utils eip1559-compute-basefee --parent-base-fee <parent-base-fee> --parent-gas-used <parent-gas-used> --parent-target-gas-used <parent-target-gas-used>
OPTIONS:
--parent-base-fee <parent-base-fee> The value of the parent block base fee
--parent-gas-used <parent-gas-used> The value of the parent block gas used
--parent-target-gas-used <parent-target-gas-used> The value of the parent block target gas used
# Help
eip-utils help eip1559-compute-basefee
# Example
eip-utils eip1559-compute-basefee --parent-base-fee=1000000000 --parent-gas-used=10000000 --parent-target-gas-used=5000000
# Output
1125000000