cfx_rpc_eth_api/
parity.rs

1use cfx_rpc_eth_types::{BlockId, Receipt};
2use jsonrpsee::{core::RpcResult, proc_macros::rpc};
3
4#[rpc(server, namespace = "parity")]
5pub trait ParityApi {
6    /// Returns all transaction receipts for a given block.
7    #[method(name = "getBlockReceipts")]
8    async fn block_receipts(
9        &self, block_id: BlockId,
10    ) -> RpcResult<Option<Vec<Receipt>>>;
11}