Module kinode_process_lib::eth
source · Expand description
Interact with the eth provider module.
Structs§
- Settings for our ETH provider
- An Ethereum address, 20 bytes in length.
- Block representation
- Wrapper type around
bytes::Bytesto support “0x” prefixed hex strings. - Incoming type for successful subscription updates.
- If your subscription is closed unexpectedly, you will receive this.
- Response type for
eth_feeHistory - Filter for logs.
- Ethereum Log emitted by a transaction
- 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. Can currently be a node or a ws provider instance.
- Transaction object used in RPC
- Helper type that supports both
dataandinputfields that map to transaction input data. - Transaction receipt
- Represents all transaction requests to/from RPC.
Enums§
- A Block Identifier. https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1898.md
- A block Number (or tag - “latest”, “earliest”, “pending”)
- 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.
- The action type used for configuring eth:distro:sys. Only processes which have the “root” capability from eth:distro:sys can successfully send this action.
- Response type from an
EthConfigActionrequest. - The Response type which a process will get from requesting with an
EthActionwill be of this type, serialized and deserialized usingserde_json::to_vecandserde_json::from_slice. - Represents the target range of blocks for the filter
- Any additional parameters for a subscription.
- Subscription kind.
- Subscription result.
Type Aliases§
- A block hash.
- A block number.
- Incoming
Requestcontaining subscription updates or errors that processes will receive. Can deserialize all incoming requests from eth:distro:sys to this type. - A transaction hash is a keccak hash of an RLP encoded signed transaction.
Uintfor256bits.