diff --git a/packages/api-derive/src/tx/signingInfo.ts b/packages/api-derive/src/tx/signingInfo.ts index 21b867deef..8b489d1660 100644 --- a/packages/api-derive/src/tx/signingInfo.ts +++ b/packages/api-derive/src/tx/signingInfo.ts @@ -29,9 +29,13 @@ function latestNonce (api: DeriveApi, address: string): Observable { } function nextNonce (api: DeriveApi, address: string): Observable { - return api.rpc.system?.accountNextIndex - ? api.rpc.system.accountNextIndex(address) - : latestNonce(api, address); + if (api.call.accountNonceApi) { + return api.call.accountNonceApi.accountNonce(address); + } else { + return api.rpc.system?.accountNextIndex + ? api.rpc.system.accountNextIndex(address) + : latestNonce(api, address); + } } function signingHeader (api: DeriveApi): Observable
{