PHP WebShell

Текущая директория: /opt/BitGoJS/modules/blockapis/dist/src

Просмотр файла: TransactionApi.d.ts

export type TransactionStatus = {
    found: false;
} | {
    found: true;
    confirmed: false;
} | {
    found: true;
    confirmed: true;
    /** Block height. Undefined for unconfirmed transactions */
    blockHeight: number;
    /** Not available for all APIs */
    blockHash?: string;
    /** Confirmation date. Not available for all APIs. */
    date?: Date;
};
export interface TransactionApi {
    /**
     * @param txid
     * @return transaction hex string
     */
    getTransactionHex(txid: string): Promise<string>;
    /**
     * @param txid
     * @return BlockInfo if found, undefined otherwise
     */
    getTransactionStatus(txid: string): Promise<TransactionStatus>;
}
export interface BlockApi {
    /**
     * @param height
     * @return block hash at height
     */
    getBlockIdAtHeight(height: number): Promise<string>;
    /**
     * @param hash
     * @return transaction ids in block at height
     */
    getTransactionIds(hash: string): Promise<string[]>;
}
export declare function getTransactionIdsAtHeight(api: BlockApi, height: number): Promise<string[]>;
//# sourceMappingURL=TransactionApi.d.ts.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!