UNPKG

@xlink-network/xlink-sdk

Version:
13 lines (10 loc) 914 B
import { UTXOBasic, UTXOSpendable, UTXOConfirmed } from './bitcoinHelpers.js'; import { ReselectSpendableUTXOsFn } from './prepareTransaction.js'; import './createTransaction.js'; import '@c4/btc-utils'; import '@scure/btc-signer'; type GetConfirmedSpendableUTXOFn = (utxo: UTXOBasic) => Promise<undefined | (UTXOSpendable & UTXOConfirmed)>; declare const reselectSpendableUTXOsFactory: (availableUTXOs: UTXOBasic[], getUTXOSpendable: GetConfirmedSpendableUTXOFn) => ReselectSpendableUTXOsFn; declare const reselectSpendableUTXOsWithSafePadFactory: (availableUTXOs: UTXOBasic[], getUTXOSpendable: GetConfirmedSpendableUTXOFn) => ReselectSpendableUTXOsFn; declare function selectUTXOs<T extends UTXOConfirmed>(satsToSend: bigint, selectedUTXOs: T[], otherAvailableUTXOs: T[]): T[]; export { type GetConfirmedSpendableUTXOFn, reselectSpendableUTXOsFactory, reselectSpendableUTXOsWithSafePadFactory, selectUTXOs };