UNPKG

@bigmi/core

Version:

TypeScript library for Bitcoin apps.

13 lines (12 loc) 739 B
import type { UTXOSchema } from '../transports/types.js'; import type { Account } from '../types/account.js'; import type { Chain } from '../types/chain.js'; import type { Client } from '../types/client.js'; import type { UTXOTransaction } from '../types/transaction.js'; import type { Transport } from '../types/transport.js'; export type GetUTXOTransactionParameters = { txId: string; blockHash?: string; }; export type GetUTXOTransactionReturnType = UTXOTransaction; export declare function getUTXOTransaction<C extends Chain | undefined, A extends Account | undefined = Account | undefined>(client: Client<Transport, C, A, UTXOSchema>, { txId, blockHash }: GetUTXOTransactionParameters): Promise<GetUTXOTransactionReturnType>;