slp-list
Version:
List token holders and balances at any block height
15 lines (14 loc) • 1 kB
TypeScript
import { Big } from "big.js";
import { GenesisInfo, TxoResponse } from ".";
export declare class List {
static GetAddressListFor(tokenId: string, blockCutoff: number, displayValueAsString?: boolean): Promise<Map<string, string> | Map<string, Big>>;
static GetCoinListFor(tokenId: string, blockCutoff: number, coinAgeStartBlock?: number): Promise<TxoResponse[]>;
static GetAddressList(txos: TxoResponse[], displayValueAsString?: boolean): Promise<Map<string, string> | Map<string, Big>>;
static GetUnspentTxosCreatedBefore(blockHeight: number, forTokenId: string): Promise<TxoResponse[]>;
static GetConfirmedTxosCreatedBeforeButSpentLaterThan(blockHeight: number, forTokenId: string): Promise<TxoResponse[]>;
static GetMempoolTxosCreatedAtOrBefore(blockHeight: number, forTokenId: string): Promise<TxoResponse[]>;
static SearchForTokenIdInDocHash(docHashHex: string, options?: {
blockHeight: number;
ticker: string;
} | undefined): Promise<GenesisInfo[]>;
}