package
0.0.5
Repository: https://github.com/hoaleee/zkevm-node.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewDebugEndpoints returns DebugEndpoints.
NewEthEndpoints creates an new instance of Eth.
NewNetEndpoints returns NetEndpoints.
NewServer returns the JsonRPC server.
NewStorage creates and initializes an instance of Storage.
NewZKEVMEndpoints returns ZKEVMEndpoints.
RPCErrorResponse formats error to be returned through RPC.
RPCErrorResponseWithData formats error to be returned through RPC.

# Constants

APIDebug represents the debug API prefix.
APIEth represents the eth API prefix.
APINet represents the net API prefix.
APITxPool represents the txpool API prefix.
APIWeb3 represents the web3 API prefix.
APIZKEVM represents the zkevm API prefix.
DefaultSenderAddress is the address that jRPC will use to communicate with the state for eth_EstimateGas and eth_Call when the From field is not specified because it is optional.
FilterTypeBlock represents a filter of type block.
FilterTypeLog represents a filter of type log.
FilterTypePendingTx represent a filter of type pending Tx.

# Variables

ErrFilterInvalidPayload indicates there is an invalid payload when creating a filter.
ErrNotFound represent a not found error.

# Structs

Config represents the configuration of the json rpc.
DBTxManager allows to do scopped DB txs.
DebugEndpoints is the debug jsonrpc endpoint.
EthEndpoints contains implementations for the "eth" RPC endpoints.
Filter represents a filter.
Handler manage services to handle jsonrpc requests Services are public structures containing public methods matching the name of the jsonrpc method.
LogFilter is a filter for logs.
NativeBlockHashBlockRangeFilter is a filter to filter native block hash by block by number.
NetEndpoints contains implementations for the "net" RPC endpoints.
Server is an API backend to handle RPC requests.
Service defines a struct that will provide public methods to be exposed by the RPC server as endpoints, the endpoints will be prefixed with the value in the Name property followed by an underscore and the method name starting with a lower case char, resulting in a mix of snake case and camel case, for example: A service with name `eth` and with a public method BlockNumber() will allow the RPC server to expose this method as `eth_blockNumber`.
Storage uses memory to store the data related to the json rpc server.
StructLogRes represents the debug trace information for each opcode.
TxPoolEndpoints is the txpool jsonrpc endpoint.
Web3Endpoints contains implementations for the "web3" RPC endpoints.
WebSocketsConfig has parameters to config the rpc websocket support.
ZKEVMEndpoints contains implementations for the "zkevm" RPC endpoints.

# Interfaces

DBTxer interface to begin DB txs.

# Type aliases

DBTxScopedFn function to do scopped DB txs.
FilterType express the type of the filter, block, logs, pending transactions.