reth_rpc_api/
reth.rs
1use alloy_eips::BlockId;
2use alloy_primitives::{Address, U256};
3use jsonrpsee::{core::RpcResult, proc_macros::rpc};
4use std::collections::HashMap;
5
6#[cfg_attr(not(feature = "client"), rpc(server, namespace = "reth"))]
8#[cfg_attr(feature = "client", rpc(server, client, namespace = "reth"))]
9pub trait RethApi {
10 #[method(name = "getBalanceChangesInBlock")]
12 async fn reth_get_balance_changes_in_block(
13 &self,
14 block_id: BlockId,
15 ) -> RpcResult<HashMap<Address, U256>>;
16}