Skip to content
Fourohtwo

Decode a BOLT11 invoice locally (no external service)

chain-data-api.agentlogic.workers.dev/ln-decode

Decode a BOLT11 invoice locally (no external service): payment hash, destination public key (payee field or recovered from the signature), amount in sats when present, timestamp, expiry, and description or description hash. Malformed invoices answer 400.

BaseAnswering
GEThttps://chain-data-api.agentlogic.workers.dev/ln-decode

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://chain-data-api.agentlogic.workers.dev/ln-decode?invoice=lnbc2500u1pvjluez...");
console.log(await res.json());

Example input

{
  "invoice": "lnbc2500u1pvjluez..."
}

More from Chain Data APIProvider status