Trait pallet_portal_rpc::PortalApiServer
source · pub trait PortalApiServer<AccountId, Balance, Hash>: Sized + Send + Sync + 'static {
// Required methods
fn fetch_head_height(&self, chain_id: ChainId) -> RpcResult<u128>;
fn fetch_all_active_xtx(
&self,
for_executor: AccountId
) -> RpcResult<Vec<(Hash, Vec<SideEffect<AccountId, Balance>>, Vec<Hash>)>>;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where AccountId: Send + Sync + 'static + DeserializeOwned + Serialize,
Balance: Send + Sync + 'static + Serialize,
Hash: Send + Sync + 'static + Serialize { ... }
}
Expand description
Server trait implementation for the PortalApi
RPC API.
Required Methods§
sourcefn fetch_head_height(&self, chain_id: ChainId) -> RpcResult<u128>
fn fetch_head_height(&self, chain_id: ChainId) -> RpcResult<u128>
Returns latest finalized header of a gateway if available