Expand description
Interact with the eth provider module.
Structs§
- Access
Settings - 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. - Error
Payload - A JSON-RPC 2.0 error object.
- EthSub
- Incoming type for successful subscription updates.
- EthSub
Error - 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.
- Provider
Config - Provider config. Can currently be a node or a ws provider instance.
- Transaction
- Transaction object used in RPC
- Transaction
Input - Helper type that supports both
data
andinput
fields that map to transaction input data. - Transaction
Receipt - Transaction receipt
- Transaction
Request - Represents all transaction requests to/from RPC.
Enums§
- Alloy
Authorization - 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
- Block
Number OrTag - 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.
- EthConfig
Action - 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. - EthConfig
Response - Response type from an
EthConfigAction
request. - EthError
- EthResponse
- The
crate::Response
body type which a process will get from requesting with anEthAction
will be of this type, serialized and deserialized usingserde_json::to_vec
andserde_json::from_slice
. - Filter
Block Option - Represents the target range of blocks for the filter
- Node
OrRpc Url - Params
- Any additional parameters for a subscription.
- Subscription
Kind - 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.
- Subscription
Result - Subscription result.
Type Aliases§
- Block
Hash - A block hash.
- Block
Number - A block number.
- EthSub
Result - Incoming
crate::Request
containing subscription updates or errors that processes will receive. Can deserialize all incoming requests from eth:distro:sys to this type. - Saved
Configs - 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.