Files
pezkuwi-api/packages/api-derive/src/balances/index.ts
T
2026-10-08 03:23:10 +04:00

27 lines
702 B
TypeScript

// Copyright 2017-2026 @pezkuwi/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { all } from './all.js';
export * from './account.js';
export * from './votingBalances.js';
/**
* @name votingBalance
* @param {( AccountId | string )} address An accounts Id in different formats.
* @returns An object containing the results of various balance queries
* @example
* <BR>
*
* ```javascript
* const ALICE = 'F7Hs';
*
* api.derive.balances.votingBalance(ALICE, ({ accountId, lockedBalance }) => {
* console.log(`The account ${accountId} has a locked balance ${lockedBalance} units.`);
* });
* ```
*/
const votingBalance = all;
export { all, votingBalance };