UNPKG

charms-js

Version:

TypeScript SDK for decoding Bitcoin transactions containing Charms data

14 lines (13 loc) 592 B
/** * Wallet adapter for charms-js * Filters CharmObj objects by wallet outpoints */ import { CharmObj } from './types.js'; /** * Convert CharmObj to wallet-compatible format (filtering by wallet outpoints) */ export declare function normalizeCharmForWallet(charmObj: CharmObj, txId: string, walletOutpoints: Set<string>, utxoValue?: number): CharmObj | null; /** * Extract charms for wallet with built-in normalization */ export declare function extractCharmsForWallet(txHex: string, txId: string, walletOutpoints: Set<string>, network?: 'mainnet' | 'testnet4'): Promise<CharmObj[]>;