# Functions

ArgBytesPtr helps to marshal byte array values provided in the RPC requests.
ArgUint64Ptr returns the pointer of the provided ArgUint64.
NewBatch creates a Batch instance.
NewBlock creates a Block instance.
NewLog creates a new instance of Log.
NewReceipt creates a new Receipt instance.
NewResponse returns Success/Error response object.
NewRPCError creates a new error instance to be returned by the RPC endpoints.
NewRPCErrorWithData creates a new error instance with data to be returned by the RPC endpoints.
NewTransaction creates a transaction instance.
NewZKCountersResponse creates an instance of ZKCounters to be returned by the RPC to the caller.
StringToBlockNumber converts a string like "latest" or "0x1" to a BlockNumber instance.

# Constants

BlockHashKey is the key for the block hash for EIP-1898.
BlockNumberKey is the key for the block number for EIP-1898.
DefaultErrorCode rpc default error code.
Earliest contains the string to represent the earliest block known.
EarliestBatchNumber represents the earliest batch number, always 0.
EarliestBlockNumber represents the earliest block number, always 0.
Finalized contains the string to represent the last verified block known.
FinalizedBatchNumber represents the last batch verified in a block that has been finalized on Ethereum.
FinalizedBlockNumber represents the last verified block number that is finalized on Ethereum.
InvalidParamsErrorCode error code for invalid parameters.
InvalidRequestErrorCode error code for invalid requests.
Latest contains the string to represent the latest block known.
LatestBatchNumber represents the last closed batch number.
LatestBlockNumber represents the latest block number.
NotFoundErrorCode error code for not found objects.
ParserErrorCode error code for parsing errors.
Pending contains the string to represent the pending block known.
PendingBatchNumber represents the last batch in the trusted state.
PendingBlockNumber represents the pending block number.
RequireCanonicalKey is the key for the require canonical for EIP-1898.
RevertedErrorCode error code for reverted txs.
Safe contains the string to represent the last virtualized block known.
SafeBatchNumber represents the last batch verified in a block that is safe on Ethereum.
SafeBlockNumber represents the last verified block number that is safe on Ethereum.

# Variables

ErrBatchRequestsDisabled returned by the server when a batch request is detected and the batch requests are disabled via configuration.
ErrBatchRequestsLimitExceeded returned by the server when a batch request is detected and the number of requests are greater than the configured limit.

# Structs

Batch structure.
Block structure.
BlockNumberOrHash allows a string value to be parsed into a block number or a hash, it's used by methods like eth_call that allows the block to be specified either by the block number or the block hash.
BlockOrHash for union type of block and types.Hash.
ErrorObject is a jsonrpc error.
ExitRoots structure.
Log structure.
LogFilterRequest represents a log filter request.
Receipt structure.
Request is a jsonrpc request.
Response is a jsonrpc success response.
RevertInfo contains the reverted message and data when a tx is reverted during the zk counter estimation.
RPCError represents an error returned by a JSON RPC endpoint.
SubscriptionResponse used to push response for filters that have an active web socket connection.
SubscriptionResponseParams parameters for subscription responses.
Transaction structure.
TransactionOrHash for union type of transaction and types.Hash.
TxArgs is the transaction argument for the rpc endpoints.
ZKCounters counters for the tx.
ZKCountersLimits used to return the zk counter limits to the user.
ZKCountersResponse returned when counters are estimated.

# Interfaces

Error interface.
EthermanInterface provides integration with L1.
PoolInterface contains the methods required to interact with the tx pool.
StateInterface gathers the methods required to interact with the state.

# Type aliases

ArgAddress represents a common.Address that accepts strings shorter than 32 bytes, like 0x00.
ArgBig helps to marshal big number values provided in the RPC requests.
ArgBytes helps to marshal byte array values provided in the RPC requests.
ArgHash represents a common.Hash that accepts strings shorter than 64 bytes, like 0x00.
ArgUint64 helps to marshal uint64 values provided in the RPC requests.
BatchNumber is the number of a ethereum block.
BlockNumber is the number of a ethereum block.
Index of a item.