Skip to content

Commit fd66fb5

Browse files
authored
docs: Use correct functions in derive.balances examples (#500)
1 parent 781876e commit fd66fb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/derives/derives.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Retrieves the essential balance details for an account, such as free balance and
271271
```javascript
272272
const ALICE = 'F7Hs';
273273
274-
api.derive.balances.all(ALICE, ({ accountId, lockedBalance }) => {
274+
api.derive.balances.account(ALICE, ({ accountId, lockedBalance }) => {
275275
console.log(`The account ${accountId} has a locked balance ${lockedBalance} units.`);
276276
});
277277
```
@@ -285,7 +285,7 @@ Retrieves the complete balance information for an account, including free balanc
285285
```javascript
286286
const ALICE = 'F7Hs';
287287
288-
api.derive.balances.account(ALICE, (accountInfo) => {
288+
api.derive.balances.all(ALICE, (accountInfo) => {
289289
console.log(
290290
`${accountInfo.accountId} info:`,
291291
Object.keys(accountInfo).map((key) => `${key}: ${accountInfo[key]}`)
@@ -1477,4 +1477,4 @@ Retrieves signing-related information for an account, including the nonce, block
14771477
"14mM9FRDDtwSYicjNxSvMfQkap8o4m9zHq7hNW4JpbSL4PPU"
14781478
);
14791479
console.log(info);
1480-
```
1480+
```

0 commit comments

Comments
 (0)