@getalby/lightning-tools
Version:
Collection of helpful building blocks and tools to develop Bitcoin Lightning web apps
36 lines (32 loc) • 855 B
TypeScript
import * as _webbtc_webln_types from '@webbtc/webln-types';
type BoostOptions = {
webln?: unknown;
};
type BoostArguments = {
destination: string;
customKey?: string;
customValue?: string;
amount?: number;
boost: Boost;
};
type WeblnBoostParams = {
destination: string;
amount: number;
customRecords: Record<string, string>;
};
type Boost = {
action: string;
value_msat: number;
value_msat_total: number;
app_name: string;
app_version: string;
feedId: string;
podcast: string;
episode: string;
ts: number;
name: string;
sender_name: string;
};
declare const sendBoostagram: (args: BoostArguments, options?: BoostOptions) => Promise<_webbtc_webln_types.SendPaymentResponse>;
export { sendBoostagram };
export type { Boost, BoostArguments, BoostOptions, WeblnBoostParams };