Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/derives/derives.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Retrieves the essential balance details for an account, such as free balance and
```javascript
const ALICE = 'F7Hs';

api.derive.balances.all(ALICE, ({ accountId, lockedBalance }) => {
api.derive.balances.account(ALICE, ({ accountId, lockedBalance }) => {
console.log(`The account ${accountId} has a locked balance ${lockedBalance} units.`);
});
```
Expand All @@ -285,7 +285,7 @@ Retrieves the complete balance information for an account, including free balanc
```javascript
const ALICE = 'F7Hs';

api.derive.balances.account(ALICE, (accountInfo) => {
api.derive.balances.all(ALICE, (accountInfo) => {
console.log(
`${accountInfo.accountId} info:`,
Object.keys(accountInfo).map((key) => `${key}: ${accountInfo[key]}`)
Expand Down Expand Up @@ -1477,4 +1477,4 @@ Retrieves signing-related information for an account, including the nonce, block
"14mM9FRDDtwSYicjNxSvMfQkap8o4m9zHq7hNW4JpbSL4PPU"
);
console.log(info);
```
```