UNPKG

@iam4x/bsc-scan

Version:

An efficient BNB and token balance scanner

30 lines 1.51 kB
import { ProviderLike } from './providers'; import { BalanceMap, EthScanOptions } from './types'; /** * Get a balance map from an array of addresses and an array of balances. * * @param {string[]} addresses * @param {bigint[]} balances * @return {BalanceMap} */ export declare const toBalanceMap: (addresses: string[] | number[], balances: Array<bigint>) => BalanceMap; /** * Get a nested balance map from an array of addresses, token addresses, and balances. * * @param {string[]} addresses * @param {bigint[]} tokenAddresses * @param {BalanceMap<BalanceMap>} balances */ export declare const toNestedBalanceMap: (addresses: string[], tokenAddresses: string[] | number[], balances: Array<Array<bigint>>) => BalanceMap<BalanceMap>; /** * Low level API function to send a contract call that returns a single uint256 array. * * @param {ProviderLike} provider * @param {string[]} addresses * @param {Function} encodeData * @param {EthScanOptions} options * @return {Promise<BalanceMap>} */ export declare const callSingle: (provider: ProviderLike, addresses: string[] | number[], encodeData: (addresses: string[] | number[]) => string, options?: EthScanOptions | undefined) => Promise<BalanceMap>; export declare const callMultiple: (provider: ProviderLike, addresses: string[], otherAddresses: string[], encodeData: (addresses: string[] | number[], otherAddresses: string[]) => string, options?: EthScanOptions | undefined) => Promise<BalanceMap<BalanceMap>>; //# sourceMappingURL=api.d.ts.map