@ln-markets/sdk
Version:
TypeScript SDK for LNMarkets API
35 lines • 1.05 kB
TypeScript
import type { KyInstance } from 'ky';
import type { PaginatedResponse, PaginationInput } from '../../types.js';
type BitcoinDeposit = {
amount: number;
blockHeight: null;
confirmations: 0;
createdAt: string;
id: string;
status: 'MEMPOOL';
txId: string;
} | {
amount: number;
blockHeight: number;
confirmations: number;
createdAt: string;
id: string;
status: 'CONFIRMED';
txId: string;
} | {
amount: number;
blockHeight: number;
confirmations: number;
createdAt: string;
id: string;
status: 'IRREVERSIBLE';
txId: string;
};
export type GetOnChainDepositsInput = PaginationInput & {
status?: 'MEMPOOL' | 'CONFIRMED' | 'IRREVERSIBLE';
};
export type GetOnChainDepositsOutput = PaginatedResponse<BitcoinDeposit>;
type GetOnChainDeposits = (input?: GetOnChainDepositsInput) => Promise<GetOnChainDepositsOutput>;
export declare const createGetOnChainDeposits: (instance: KyInstance) => GetOnChainDeposits;
export {};
//# sourceMappingURL=get-on-chain-deposits.d.ts.map