alloy-reth
Types and provider extensions for the reth_ Ethereum JSON-RPC namespace.
Usage
[]
= "0.1"
Provider Extension
With the provider feature (enabled by default), you can use the RethApi extension trait
with any alloy provider:
use ProviderBuilder;
use RethApi;
use BlockId;
let provider = new.connect.await?;
let changes = provider
.reth_get_balance_changes_in_block
.await?;
Supported Methods
| Method | Description |
|---|---|
reth_getBalanceChangesInBlock |
Returns balance changes in a block |
reth_getBlockExecutionOutcome |
Returns the execution outcome for a block |
reth_newPayload |
Submits a new payload to the engine (extended) |
reth_forkchoiceUpdated |
Updates the forkchoice state |
Features
std— Enablestdsupport (enabled by default)provider— Enable theRethApiprovider extension trait (enabled by default)
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.