Skip to main content

Module snap

Module snap 

Source
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

This module implements the snap/2 (EIP-8189) message definitions.

Structs§

AccountData
Account data in the response.
AccountRangeMessage
Response containing a number of consecutive accounts and the Merkle proofs for the entire range.
BlockAccessListsMessage
Response containing one BAL per requested block hash.
ByteCodesMessage
Response containing a number of requested contract codes.
GetAccountRangeMessage
Request for a range of accounts from the state trie.
GetBlockAccessListsMessage
Request BALs for the given block hashes.
GetByteCodesMessage
Request to get a number of requested contract codes.
GetStorageRangesMessage
Request for the storage slots of multiple accounts’ storage tries.
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.

Enums§

SnapMessageId
Message IDs for the snap sync protocol
SnapProtocolError
Error decoding an inbound snap protocol message from its framed bytes.
SnapProtocolMessage
Represents all types of messages in the snap sync protocol.
SnapVersion
Supported SNAP protocol versions.