mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-13 16:34:57 -05:00
16 lines
579 B
Rust
16 lines
579 B
Rust
use jsonrpsee::{core::RpcResult, proc_macros::rpc};
|
|
use reth_primitives::{Address, BlockId, U256};
|
|
use std::collections::HashMap;
|
|
|
|
/// Reth API namespace for reth-specific methods
|
|
#[cfg_attr(not(feature = "client"), rpc(server, namespace = "reth"))]
|
|
#[cfg_attr(feature = "client", rpc(server, client, namespace = "reth"))]
|
|
pub trait RethApi {
|
|
/// Returns all ETH balance changes in a block
|
|
#[method(name = "getBalanceChangesInBlock")]
|
|
async fn reth_get_balance_changes_in_block(
|
|
&self,
|
|
block_id: BlockId,
|
|
) -> RpcResult<HashMap<Address, U256>>;
|
|
}
|