Trait flow_rust_sdk::flow::access_api_server::AccessApi[][src]

pub trait AccessApi: Send + Sync + 'static {
Show 21 methods fn ping<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PingRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<PingResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_latest_block_header<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetLatestBlockHeaderRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<BlockHeaderResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_block_header_by_id<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetBlockHeaderByIdRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<BlockHeaderResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_block_header_by_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetBlockHeaderByHeightRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<BlockHeaderResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_latest_block<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetLatestBlockRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<BlockResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_block_by_id<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetBlockByIdRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<BlockResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_block_by_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetBlockByHeightRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<BlockResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_collection_by_id<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCollectionByIdRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<CollectionResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn send_transaction<'life0, 'async_trait>(
        &'life0 self,
        request: Request<SendTransactionRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<SendTransactionResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_transaction<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetTransactionRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<TransactionResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_transaction_result<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetTransactionRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<TransactionResultResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_account_at_latest_block<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetAccountAtLatestBlockRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AccountResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_account_at_block_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetAccountAtBlockHeightRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<AccountResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn execute_script_at_latest_block<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ExecuteScriptAtLatestBlockRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteScriptResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn execute_script_at_block_id<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ExecuteScriptAtBlockIdRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteScriptResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn execute_script_at_block_height<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ExecuteScriptAtBlockHeightRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ExecuteScriptResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_events_for_height_range<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetEventsForHeightRangeRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<EventsResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_events_for_block_i_ds<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetEventsForBlockIdsRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<EventsResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_network_parameters<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetNetworkParametersRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetNetworkParametersResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_latest_protocol_state_snapshot<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetLatestProtocolStateSnapshotRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ProtocolStateSnapshotResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_execution_result_for_block_id<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetExecutionResultForBlockIdRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<ExecutionResultForBlockIdResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with AccessApiServer.

Required methods

The following is copied from https://docs.onflow.org/access-api/ You should also reference https://github.com/onflow/flow/blob/master/protobuf/flow/access/access.proto

Implementors