@okxweb3/coin-bitcoin
Version:
@ok/coin-bitcoin is a Bitcoin SDK for building Web3 wallets and applications. It supports BTC, BSV, DOGE, LTC, and TBTC, enabling private key management, transaction signing, address generation, and inscriptions like BRC-20, Runes, CAT, and Atomicals.
31 lines (30 loc) • 642 B
TypeScript
export type TokenPrevTx = {
prevTx: string;
prevPrevTx: string;
};
export interface CatTransferParams {
tokenMetadata: string;
feeInputs: UtxoInput[];
feeRate: number;
tokens: string;
changeAddress: string;
toAddress: string;
tokenAmount: string;
tokenPrevTxs: TokenPrevTx[];
verifyScript?: boolean;
guard?: string;
publicKey?: string;
signData?: SignData;
estimateFee?: boolean;
}
export type UtxoInput = {
txId: string;
vOut: number;
amount: number;
address?: string;
};
export type SignData = {
merge: string[];
commit: string[];
reveal: string[];
};