diff --git a/docs/start/api.query.md b/docs/start/api.query.md index 6e776a51c6..70bbf579c4 100644 --- a/docs/start/api.query.md +++ b/docs/start/api.query.md @@ -20,7 +20,7 @@ const now = await api.query.timestamp.now(); const nonce = await api.query.system.accountNonce(ADDR); // retrieve the account balance via the balances module -const balance = await api.query.balance.freeBalance(ADDR); +const balance = await api.query.balances.freeBalance(ADDR); console.log(`${now}: balance of ${balance} and a nonce of ${nonce}`); ``` @@ -33,7 +33,7 @@ There have been some additions in the code above comparing with retrieving runti const [now, nonce, balance] = await Promise.all([ api.query.timestamp.now(), api.query.system.accountNonce(ADDR), - api.query.balance.freeBalance(ADDR) + api.query.balances.freeBalance(ADDR) ]); ``` diff --git a/docs/start/api.query.other.md b/docs/start/api.query.other.md index 4a49fd9fe0..5a623080d4 100644 --- a/docs/start/api.query.other.md +++ b/docs/start/api.query.other.md @@ -44,8 +44,8 @@ In addition to using `api.query` to make actual on-chain queries, it can also be // retrieve the hash & size of the entry as stored on-chain const [entryHash, entrySize] = await Promise.all([ - api.query.freeBalance.hash(ADDR), - api.query.freeBalance.size(ADDR) + api.query.balances.freeBalance.hash(ADDR), + api.query.balances.freeBalance.size(ADDR) ]); // output the info