Skip to main content

GetBlockAccessList

Trait GetBlockAccessList 

Source
pub trait GetBlockAccessList:
    Trace
    + Call
    + LoadBlock
    + RpcNodeCoreExt {
    // Provided methods
    fn get_block_access_list(
        &self,
        block_id: BlockId,
    ) -> impl Future<Output = Result<Option<Vec<AccountChanges>>, Self::Error>> + Send { ... }
    fn get_raw_block_access_list(
        &self,
        block_id: BlockId,
    ) -> impl Future<Output = Result<Option<Bytes>, Self::Error>> + Send { ... }
}
Expand description

Helper trait for eth_blockAccessList RPC method.

Provided Methods§

Source

fn get_block_access_list( &self, block_id: BlockId, ) -> impl Future<Output = Result<Option<Vec<AccountChanges>>, Self::Error>> + Send

Retrieves the block access list for a block identified by its hash.

Source

fn get_raw_block_access_list( &self, block_id: BlockId, ) -> impl Future<Output = Result<Option<Bytes>, Self::Error>> + Send

Retrieves the raw RLP-encoded block access list for a block.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<N, Rpc> GetBlockAccessList for EthApi<N, Rpc>
where EthApiError: FromEvmError<<N as RpcNodeCore>::Evm>, Rpc: RpcConvert<Primitives = <N as RpcNodeCore>::Primitives, Error = EthApiError, Evm = <N as RpcNodeCore>::Evm>, N: RpcNodeCore,