UNPKG

askexperts

Version:

AskExperts SDK: build and use AI experts - ask them questions and pay with bitcoin on an open protocol

12 lines (11 loc) 373 B
/** * Parses a BOLT11 invoice and extracts bid amount and payment hash * * @param invoice - The BOLT11 invoice string to parse * @returns Object containing amount_sats and payment_hash * @throws Error if decoding fails or if either output field is empty */ export declare function parseBolt11(invoice: string): { amount_sats: number; payment_hash: string; };