Module snap

Expand description

Implements Ethereum SNAP message types. Snap protocol runs on top of RLPx facilitating the exchange of Ethereum state snapshots between peers Reference: Ethereum Snapshot Protocol

Current version: snap/1

Structs§

AccountData
Account data in the response.
AccountRangeMessage
Response containing a number of consecutive accounts and the Merkle proofs for the entire range.
ByteCodesMessage
Response containing a number of requested contract codes.
GetAccountRangeMessage
Request for a range of accounts from the state trie.
GetByteCodesMessage
Request to get a number of requested contract codes.
GetStorageRangesMessage
Request for the storage slots of multiple accounts’ storage tries.
GetTrieNodesMessage
Request a number of state (either account or storage) Merkle trie nodes by path
StorageData
Storage slot data in the response.
StorageRangesMessage
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.
TrieNodesMessage
Response containing a number of requested state trie nodes
TriePath
Path in the trie for an account and its storage

Enums§

SnapMessageId
Message IDs for the snap sync protocol
SnapProtocolMessage
Represents all types of messages in the snap sync protocol.