UNPKG

charms-js

Version:

TypeScript SDK for decoding Bitcoin transactions containing Charms data

33 lines (32 loc) 804 B
/** * WASM-based decoder for Charms.js * Simplified implementation using charms-lib WASM module */ export interface CharmInstance { utxo: { tx: string; index: number; }; address: string; appId: string; app: Record<string, any> | null; appType?: string; ticker?: string; remaining?: number; value?: number; name?: string; description?: string; url?: string; image?: string; image_hash?: string; decimals?: number; ref?: string; custom?: Record<string, any>; verified?: boolean; } /** * Decode transaction using WASM spell extraction * @param txHex - Transaction hex string * @returns Array of CharmInstance objects */ export declare function decodeTransactionWithWasm(txHex: string): Promise<CharmInstance[]>;