Module eth

Source
Expand description

Interact with the eth provider module.

Structs§

AccessSettings
Settings for our ETH provider
Address
An Ethereum address, 20 bytes in length.
Block
Block representation
Bytes
Wrapper type around bytes::Bytes to support “0x” prefixed hex strings.
ErrorPayload
A JSON-RPC 2.0 error object.
EthSub
Incoming type for successful subscription updates.
EthSubError
If your subscription is closed unexpectedly, you will receive this.
FeeHistory
Response type for eth_feeHistory
Filter
Filter for logs.
Log
Ethereum Log emitted by a transaction
Provider
An EVM chain provider. Create this object to start making RPC calls. Set the chain_id to determine which chain to call: requests will fail unless the node this process is running on has access to a provider for that chain.
ProviderConfig
Provider config. Can currently be a node or a ws provider instance.
Transaction
Transaction object used in RPC
TransactionInput
Helper type that supports both data and input fields that map to transaction input data.
TransactionReceipt
Transaction receipt
TransactionRequest
Represents all transaction requests to/from RPC.

Enums§

AlloyAuthorization
Basic, bearer or raw authentication in http or websocket transport.
Authorization
BlockId
A Block Identifier. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md
BlockNumberOrTag
A block Number (or tag - “latest”, “earliest”, “pending”)
EthAction
The Action and Request type that can be made to eth:distro:sys. Any process with messaging capabilities can send this action to the eth provider.
EthConfigAction
The action type used for configuring eth:distro:sys. Only processes which have the “root” crate::Capability from eth:distro:sys can successfully send this action.
EthConfigResponse
Response type from an EthConfigAction request.
EthError
EthResponse
The crate::Response body type which a process will get from requesting with an EthAction will be of this type, serialized and deserialized using serde_json::to_vec and serde_json::from_slice.
FilterBlockOption
Represents the target range of blocks for the filter
NodeOrRpcUrl
Params
Any additional parameters for a subscription.
SubscriptionKind
Subscription kind. Pulled directly from alloy (https://github.com/alloy-rs/alloy). Why? Because alloy is not yet 1.0 and the types in this interface must be stable. If alloy SubscriptionKind changes, we can implement a transition function in runtime for this type.
SubscriptionResult
Subscription result.

Type Aliases§

BlockHash
A block hash.
BlockNumber
A block number.
EthSubResult
Incoming crate::Request containing subscription updates or errors that processes will receive. Can deserialize all incoming requests from eth:distro:sys to this type.
SavedConfigs
TxHash
A transaction hash is a keccak hash of an RLP encoded signed transaction.
U8
8-bit unsigned integer type, consisting of 1, 64-bit limbs.
U64
64-bit unsigned integer type, consisting of 1, 64-bit limbs.
U128
128-bit unsigned integer type, consisting of 2, 64-bit limbs.
U256
256-bit unsigned integer type, consisting of 4, 64-bit limbs.