UNPKG

wowok

Version:

Wowok Blockchain TypeScript API

31 lines (30 loc) 1.02 kB
import type { ENTRYPOINT } from "../../client/network.js"; import type { BalanceType } from "../common.js"; import type { AccountOrMark_Address } from "../local/index.js"; export interface QueryReceived { name_or_address: AccountOrMark_Address; all_type?: boolean; cursor?: string | null | undefined; limit?: number | null | undefined; no_cache?: boolean; network?: ENTRYPOINT; } export interface ReceivedBalanceObject { id: string; balance: BalanceType; payment: string; } export interface ReceivedBalance { balance: BalanceType; token_type: string; received: ReceivedBalanceObject[]; } export type ReceivedBalanceOrRecently = ReceivedBalance | "recently"; export type ReceivedObjectsOrRecently = ReceivedObjects | "recently"; export interface ReceivedNormal { id: string; type: string; content_raw?: any; } export type ReceivedObjects = ReceivedNormal[] | ReceivedBalance; export declare const query_received: (query: QueryReceived) => Promise<ReceivedObjects>;