a library that is useful for developers wanting to integrate podcast payments
Load Podcast Payment Events Using GUIDs:
/** `loadPaymentsForFeed` */ export async function loadPaymentsForFeed( guid: string, options: { limit?: number; relays?: string[] }): Promise<PodcastPayment[]> /** `loadPaymentsForItem` */ export async function loadPaymentsForItem( guid: string, options: { kinds?: number[]; limit?: number; relays?: string[] } ): Promise<PodcastPayment[]>
Generate BOLT-11 Invoices from a Lightning Address:
/** `generateInvoice` - requests a bolt11 invoice from a lightning address */ export async function generateInvoice( lnaddress: string, satoshis: number, message?: string ): Promise<{ success: boolean; invoice?: string; error?: any }>
deno add @fountain/podpay
npx jsr add @fountain/podpay
pnpm dlx jsr add @fountain/podpay
bunx jsr add @fountain/podpay
Add Package
deno add jsr:@fountain/podpay
Import symbol
import * as podpay from "@fountain/podpay";
---- OR ----
Import directly with a jsr specifier
import * as podpay from "jsr:@fountain/podpay";
Add Package
npx jsr add @fountain/podpay
Import symbol
import * as podpay from "@fountain/podpay";
Add Package
yarn dlx jsr add @fountain/podpay
Import symbol
import * as podpay from "@fountain/podpay";
Add Package
pnpm dlx jsr add @fountain/podpay
Import symbol
import * as podpay from "@fountain/podpay";
Add Package
bunx jsr add @fountain/podpay
Import symbol
import * as podpay from "@fountain/podpay";