ethereum.eth_types
¶
Ethereum Types¶
Table of Contents
Introduction¶
Types re-used throughout the specification, which are specific to Ethereum.
Module Contents¶
Classes¶
Atomic operation performed on the block chain. |
|
State associated with an address. |
|
Header portion of a block on the chain. |
|
A complete block. |
|
Data record produced during the execution of a transaction. |
|
Result of a transaction. |
Attributes¶
Module Details¶
Address¶
- ethereum.eth_types.Address¶
Root¶
- ethereum.eth_types.Root¶
Hash32¶
- ethereum.eth_types.Hash32¶
Hash64¶
- ethereum.eth_types.Hash64¶
Storage¶
- ethereum.eth_types.Storage¶
Bloom¶
- ethereum.eth_types.Bloom¶
TX_BASE_COST¶
- ethereum.eth_types.TX_BASE_COST = 21000¶
TX_DATA_COST_PER_NON_ZERO¶
- ethereum.eth_types.TX_DATA_COST_PER_NON_ZERO = 68¶
TX_DATA_COST_PER_ZERO¶
- ethereum.eth_types.TX_DATA_COST_PER_ZERO = 4¶
Transaction¶
Atomic operation performed on the block chain.
- class ethereum.eth_types.Transaction¶
- nonce :ethereum.base_types.U256¶
- gas_price :ethereum.base_types.U256¶
- gas :ethereum.base_types.U256¶
- to :Optional[Address]¶
- value :ethereum.base_types.U256¶
- data :ethereum.base_types.Bytes¶
- v :ethereum.base_types.U256¶
- r :ethereum.base_types.U256¶
- s :ethereum.base_types.U256¶
Account¶
State associated with an address.
EMPTY_ACCOUNT¶
- ethereum.eth_types.EMPTY_ACCOUNT¶
Header¶
Header portion of a block on the chain.
- class ethereum.eth_types.Header¶
- parent :Hash32¶
- ommers :Hash32¶
- coinbase :Address¶
- state_root :Root¶
- transactions_root :Root¶
- receipt_root :Root¶
- bloom :Bloom¶
- difficulty :ethereum.base_types.Uint¶
- number :ethereum.base_types.Uint¶
- gas_limit :ethereum.base_types.Uint¶
- gas_used :ethereum.base_types.Uint¶
- time :ethereum.base_types.U256¶
- extra :ethereum.base_types.Bytes¶
- mix_digest :ethereum.base_types.Bytes32¶
- nonce :ethereum.base_types.Bytes8¶
Block¶
A complete block.
Log¶
Data record produced during the execution of a transaction.
Receipt¶
Result of a transaction.
State¶
- ethereum.eth_types.State¶