Module constants

Source
Expand description

Ethereum protocol-related constants

Constantsยง

DEV_GENESIS_HASH
Testnet genesis hash.
EIP1559_TX_TYPE_ID
Identifier for an EIP1559 transaction.
EIP2930_TX_TYPE_ID
Identifier for an EIP2930 transaction.
EIP4844_TX_TYPE_ID
Identifier for an EIP4844 transaction.
EIP7702_TX_TYPE_ID
Identifier for an EIP7702 transaction.
EMPTY_OMMER_ROOT_HASH
Ommer root of empty list.
EMPTY_RECEIPTS
Transactions root of empty receipts set.
EMPTY_ROOT_HASH
Root hash of an empty trie.
EMPTY_TRANSACTIONS
Transactions root of empty transactions set.
EMPTY_WITHDRAWALS
Withdrawals root of empty withdrawals set.
ETH_TO_WEI
Multiplier for converting ether to wei.
FINNEY_TO_WEI
Multiplier for converting finney (milliether) to wei.
GOERLI_BASE_GENESIS
Base goerli genesis hash.
GOERLI_GENESIS_HASH
Goerli genesis hash.
GOERLI_OP_GENESIS
Optimism goerli genesis hash.
GWEI_TO_WEI
Multiplier for converting gwei to wei.
HOLESKY_GENESIS_HASH
Holesky genesis hash.
KECCAK_EMPTY
Keccak256 over empty array.
LEGACY_TX_TYPE_ID
Identifier for legacy transaction, however a legacy tx is technically not typed.
MAINNET_GENESIS_HASH
The Ethereum mainnet genesis hash.
MAXIMUM_EXTRA_DATA_SIZE
Maximum extra data size in a block after genesis
MGAS_TO_GAS
Multiplier for converting mgas to gas.
SELECTOR_LEN
The first four bytes of the call data for a function call specifies the function to be called.
SEPOLIA_GENESIS_HASH
Sepolia genesis hash.