diff --git a/subxt/src/backend/legacy/rpc_methods.rs b/subxt/src/backend/legacy/rpc_methods.rs index b4f619f4f4..4dde85ee98 100644 --- a/subxt/src/backend/legacy/rpc_methods.rs +++ b/subxt/src/backend/legacy/rpc_methods.rs @@ -138,6 +138,18 @@ impl LegacyRpcMethods { .await } + /// Fetch next nonce for an Account + /// + /// Return account nonce adjusted for extrinsics currently in transaction pool + pub async fn system_account_next_index(&self, account_id: &T::AccountId) -> Result + where + T::AccountId: Serialize, + { + self.client + .request("system_accountNextIndex", rpc_params![&account_id]) + .await + } + /// Get a header pub async fn chain_get_header( &self,