Expand description
The EthRpcServer RPC server implementation
Modules§
- cli
- The Ethereum JSON-RPC server.
- client
- The client connects to the source substrate chain and is used by the rpc server to query and send transactions to the substrate chain.
- example
- Example utilities
- subxt_
client - The generated subxt client.
Generated against a substrate chain configured with
pallet_reviveusing: subxt metadata –url ws://localhost:9944 -o rpc/revive_chain.scale
Structs§
- Block
Header - Block header object returned by
newHeadssubscriptions. - DbContext
- SQLite connection pool with precomputed bulk-insert chunk sizes.
- Debug
RpcServer Impl - EthRpc
Server Impl - An EVM RPC server implementation.
- FeeHistory
Provider - Manages the fee history cache.
- FeeHistory
Result - Filter
- Filter for logs.
- Log
- log
- Logs
Subscription Filter - A type used as a filter for logs in subscriptions.
- Polkadot
RpcServer Impl - Receipt
Extractor - Utility to extract receipts from extrinsics.
- Receipt
Info - Receipt information
- Receipt
Provider - ReceiptProvider stores transaction receipts and logs in a SQLite database.
- Subxt
Block Info Provider - Provides information about blocks.
- Syncing
Progress - Syncing progress
- System
Health RpcServer Impl - Trace
Call Config - Configuration for
debug_traceCall, extendingTracerConfigwith state overrides. - Tracer
Config - Tracer configuration used to trace calls.
- Transaction
Trace - A transaction trace
Enums§
- BlockId
- A Block Identifier. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md
- Block
Number OrTag - A block Number (or tag - “latest”, “earliest”, “pending”)
- Bounded
OneOr Many - A helper type used when a type can be serialized and deserialized as either being one or as an array.
- EthRpc
Error - The error type for the EVM RPC server.
- Filter
Block Option - Represents the target range of blocks for the filter
- Filter
Results - Filter results
- Subscription
Item - Subscription
Kind - The kind of subscription the user is requesting from the eth-rpc.
- Subscription
Options - Options passed by the user for their subscription to make it more specific.
- Subscription
Parameters - Resolved parameters for the subscription request which contains both the request type and the options.
- Syncing
Status - Syncing status
Constants§
- LOG_
TARGET - MAX_
CACHED_ BLOCKS - Maximum number of entries kept in the block to hash map.
Traits§
- Block
Info - Provides information about a block,
This is an abstraction on top of
SubstrateBlockthat can’t be mocked in tests. Can be removed once https://github.com/paritytech/subxt/issues/1883 is fixed. - Block
Info Provider - BlockInfoProvider cache and retrieves information about blocks.
- Debug
RpcClient - Client implementation for the
DebugRpcRPC API. - Debug
RpcServer - Server trait implementation for the
DebugRpcRPC API. - EthRpc
Client - Client implementation for the
EthRpcRPC API. - EthRpc
Server - Server trait implementation for the
EthRpcRPC API. - Polkadot
RpcClient - Client implementation for the
PolkadotRpcRPC API. - Polkadot
RpcServer - Server trait implementation for the
PolkadotRpcRPC API. - System
Health RpcClient - Client implementation for the
SystemHealthRpcRPC API. - System
Health RpcServer - Server trait implementation for the
SystemHealthRpcRPC API.