referrerpolicy=no-referrer-when-downgrade
pub trait SystemApiClient<BlockHash, AccountId, Nonce>: ClientT
where BlockHash: Send + Sync + 'static + Serialize, AccountId: Send + Sync + 'static + Serialize, Nonce: Send + Sync + 'static + DeserializeOwned,
{ // Provided methods fn nonce<'life0, 'async_trait>( &'life0 self, account: AccountId, ) -> Pin<Box<dyn Future<Output = Result<Nonce, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } fn dry_run<'life0, 'async_trait>( &'life0 self, extrinsic: Bytes, at: Option<BlockHash>, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Client implementation for the SystemApi RPC API.

Provided Methods§

source

fn nonce<'life0, 'async_trait>( &'life0 self, account: AccountId, ) -> Pin<Box<dyn Future<Output = Result<Nonce, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Returns the next valid index (aka nonce) for given account.

This method takes into consideration all pending transactions currently in the pool and if no transactions are found in the pool it fallbacks to query the index from the runtime (aka. state nonce).

source

fn dry_run<'life0, 'async_trait>( &'life0 self, extrinsic: Bytes, at: Option<BlockHash>, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Dry run an extrinsic at a given block. Return SCALE encoded ApplyExtrinsicResult.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<TypeJsonRpseeInteral, BlockHash, AccountId, Nonce> SystemApiClient<BlockHash, AccountId, Nonce> for TypeJsonRpseeInteral
where TypeJsonRpseeInteral: ClientT, BlockHash: Send + Sync + 'static + Serialize, AccountId: Send + Sync + 'static + Serialize, Nonce: Send + Sync + 'static + DeserializeOwned,