Trait pallet_xdns_rpc::XdnsApiServer
source · pub trait XdnsApiServer<AccountId>: Sized + Send + Sync + 'static {
// Required methods
fn fetch_records(&self) -> RpcResult<Vec<GatewayRecord<AccountId>>>;
fn fetch_abi(&self, chain_id: ChainId) -> RpcResult<GatewayABIConfig>;
fn fetch_full_gateway_records(
&self
) -> RpcResult<Vec<FullGatewayRecord<AccountId>>>;
// Provided method
fn into_rpc(self) -> RpcModule<Self>
where AccountId: Send + Sync + 'static + Serialize { ... }
}
Expand description
Server trait implementation for the XdnsApi
RPC API.
Required Methods§
sourcefn fetch_records(&self) -> RpcResult<Vec<GatewayRecord<AccountId>>>
fn fetch_records(&self) -> RpcResult<Vec<GatewayRecord<AccountId>>>
Returns all known XDNS records