@okxweb3/coin-bitcoin
Version:
@okxweb3/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
8 lines (7 loc) • 338 B
TypeScript
import { btc, SupportedNetwork, TokenMetadata } from "../common";
export type TokenTx = {
prevTx: btc.Transaction;
prevPrevTx: btc.Transaction;
prevTokenInputIndex: number;
};
export declare function validatePrevTx(metadata: TokenMetadata, prevTxHex: string, prevPrevTxHex: string, network: SupportedNetwork): TokenTx | null;