charms-js
Version:
TypeScript SDK for decoding Bitcoin transactions containing Charms data
14 lines (13 loc) • 642 B
TypeScript
/**
* Browser-ready version of charms-js with automatic WASM initialization
*/
import { CharmObj, BitcoinNetwork, CharmExtractionResult } from './shared/types.js';
/**
* Extract charms for wallet - Browser version with auto-init
*/
export declare function extractCharmsForWallet(txHex: string, txId: string, walletOutpoints: Set<string>, network?: BitcoinNetwork): Promise<CharmObj[]>;
/**
* Extract and verify spell - Browser version with auto-init
*/
export declare function extractAndVerifySpell(txHex: string, network?: BitcoinNetwork, txId?: string): Promise<CharmExtractionResult>;
export declare function isWasmReady(): boolean;