@xlink-network/xlink-sdk
Version:
27 lines (24 loc) • 894 B
text/typescript
import * as btc from '@scure/btc-signer';
import { UTXOBasic, BitcoinNetwork } from './bitcoinHelpers.mjs';
import { GetConfirmedSpendableUTXOFn } from './selectUTXOs.mjs';
import '@c4/btc-utils';
import './prepareTransaction.mjs';
import './createTransaction.mjs';
interface InscriptionRecipient {
inscriptionUtxo: UTXOBasic;
addressScriptPubKey: Uint8Array;
}
declare function createSendInscriptionTransaction(options: {
network: BitcoinNetwork;
inscriptionRecipients: InscriptionRecipient[];
changeAddressScriptPubKey: Uint8Array;
opReturnData?: Uint8Array[];
availableFeeUtxos: UTXOBasic[];
feeRate: bigint;
getUTXOSpendable: GetConfirmedSpendableUTXOFn;
}): Promise<{
tx: btc.Transaction;
inscriptionUtxoInputIndices: number[];
bitcoinUtxoInputIndices: number[];
}>;
export { type InscriptionRecipient, createSendInscriptionTransaction };