Expand description
Types for the eth wire protocol: https://github.com/ethereum/devp2p/blob/master/caps/eth.md
Re-exports§
pub use version::EthVersion;
pub use version::ProtocolVersion;
pub use message::EthMessage;
pub use message::EthMessageID;
pub use message::ProtocolMessage;
pub use header::*;
pub use blocks::*;
pub use broadcast::*;
pub use transactions::*;
pub use state::*;
pub use receipts::*;
pub use disconnect_reason::*;
pub use capability::*;
pub use primitives::*;
Modules§
- blocks
- Implements the
GetBlockHeaders
,GetBlockBodies
,BlockHeaders
, andBlockBodies
message types. - broadcast
- Types for broadcasting new data.
- capability
- All capability related types
- disconnect_
reason RLPx
disconnect reason sent to/received from peer- header
- Header types.
- message
- Implements Ethereum wire protocol for versions 66, 67, and 68.
Defines structs/enums for messages, request-response pairs, and broadcasts.
Handles compatibility with
EthVersion
. - primitives
- Abstraction over primitive types in network messages.
- receipts
- Implements the
GetReceipts
andReceipts
message types. - state
- Implements the
GetNodeData
andNodeData
message types. - transactions
- Implements the
GetPooledTransactions
andPooledTransactions
message types. - version
- Support for representing the version of the
eth
Structs§
- Account
Data - Account data in the response.
- Account
Range Message - Response containing a number of consecutive accounts and the Merkle proofs for the entire range.
- Byte
Codes Message - Response containing a number of requested contract codes.
- GetAccount
Range Message - Request for a range of accounts from the state trie.
- GetByte
Codes Message - Request to get a number of requested contract codes.
- GetStorage
Ranges Message - Request for the storage slots of multiple accounts’ storage tries.
- GetTrie
Nodes Message - Request a number of state (either account or storage) Merkle trie nodes by path
- Status
- The status message is used in the eth protocol handshake to ensure that peers are on the same network and are following the same fork.
- Status
Builder - Builder for
Status
messages. - Status
Eth69 - Similar to
Status
, but foreth/69
version, which does not contain thetotal_difficulty
field. - Storage
Data - Storage slot data in the response.
- Storage
Ranges Message - Response containing a number of consecutive storage slots for the requested account and optionally the merkle proofs for the last range (boundary proofs) if it only partially covers the storage trie.
- Trie
Nodes Message - Response containing a number of requested state trie nodes
- Trie
Path - Path in the trie for an account and its storage
Enums§
- Hash
OrNumber - re-export for convenience Either a hash or a block number
- Snap
Message Id - Message IDs for the snap sync protocol
- Snap
Protocol Message - Represents all types of messages in the snap sync protocol.
Traits§
- Encodable2718
- Encoding trait for EIP-2718 envelopes.
Type Aliases§
- Block
Hash OrNumber - re-export for convenience A block hash or a block number