mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-11-01 22:41:06 +00:00
27 lines
702 B
TypeScript
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 };
|