UNPKG

charms-js

Version:

TypeScript SDK for decoding Bitcoin transactions containing Charms data

20 lines (19 loc) 649 B
/** * WASM wrapper for Charms.js - simplified integration * Uses charms-lib WASM module for spell extraction and verification */ /** * Extract and verify spell from transaction hex using WASM * @param txHex - Transaction hex string * @param mock - Whether to use mock mode (default: false) * @returns Parsed spell data with verification */ export declare function extractAndVerifySpell(txHex: string, mock?: boolean): Promise<any>; /** * Check if WASM module is ready */ export declare function isWasmReady(): boolean; /** * Preload WASM module (optional, for better performance) */ export declare function preloadWasm(): Promise<void>;