charms-js
Version:
TypeScript SDK for decoding Bitcoin transactions containing Charms data
8 lines (7 loc) • 542 B
TypeScript
import { CharmInstance, ErrorResponse, NetworkConfig } from './types';
export declare function fetchTransactionHex(txId: string, config?: NetworkConfig): Promise<string | null>;
export declare function decodeTransaction(txHex: string, config?: NetworkConfig): Promise<CharmInstance[] | ErrorResponse>;
export declare function hasCharmsData(txHex: string): boolean;
export declare function decodeTransactionById(txId: string, config?: NetworkConfig): Promise<CharmInstance[] | ErrorResponse>;
export * from './types';
export * from './utils';