Pay-per-call API for real-time Bitcoin & Lightning data — invoice decoding, fee estimates, routing queries, network stats, and node status. Powered by a mainnet Lightning node running since Feb 2026.
# Example request curl -H "Authorization: L402 <macaroon>:<preimage>" "https://dispatches.mystere.me/api/v1/invoice/decode?invoice=lnbc1000n1p..." # Response { "valid": true, "network": "mainnet", "amount_sats": 1000, "description": "Payment for services", "payment_hash": "a1b2c3...", "expiry_seconds": 3600, "payee_pubkey": "03b8a5..." }
# Example request curl -H "Authorization: L402 <macaroon>:<preimage>" "https://dispatches.mystere.me/api/v1/fees" # Response { "timestamp": 1713542400000, "fees": { "fastest": 12, "half_hour": 8, "hour": 5, "economy": 3, "minimum": 1 }, "mempool": { "count": 14250, "vsize_mb": 48.2 } }
# Example request curl -H "Authorization: L402 <macaroon>:<preimage>" "https://dispatches.mystere.me/api/v1/node/routes?pubkey=035e4ff418fc8b5554c5d9eea66396c227bd429a3251c8cbc711002ba215bfc226&amount=50000" # Response { "source_pubkey": "03b8a5...", "target_pubkey": "035e4f...", "amount_sats": 50000, "total_routes": 2, "routes": [ { "total_fees_msat": "1000", "hops": [...] } ] }
# Example request curl -H "Authorization: L402 <macaroon>:<preimage>" "https://dispatches.mystere.me/api/network" # Response includes: price, fees, mempool, difficulty, lightning_network, block_height
# Example request curl -H "Authorization: L402 <macaroon>:<preimage>" "https://dispatches.mystere.me/api/node" # Response includes: pubkey, alias, synced, channels, local/remote balance
# Example curl -H "Authorization: L402 <macaroon>:<preimage>" "https://dispatches.mystere.me/api/v1/graph/node/03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f" # Returns: alias, color, addresses, features, num_channels, total_capacity
# Example
curl -H "Authorization: L402 <macaroon>:<preimage>" "https://dispatches.mystere.me/api/v1/graph/channels/03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f"
# Example
curl -H "Authorization: L402 <macaroon>:<preimage>" "https://dispatches.mystere.me/api/v1/graph/search?q=ACINQ"
# Example curl -H "Authorization: L402 <macaroon>:<preimage>" "https://dispatches.mystere.me/api/v1/node/health/03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f" # Returns: health_score (0-100), rating, detailed metrics and scoring breakdown
# Example
curl -H "Authorization: L402 <macaroon>:<preimage>" "https://dispatches.mystere.me/api/v1/channel/lookup/8241389948594135345"
Every 402 response includes payment instructions for both methods. Pick whichever you prefer.
Pay satoshis via Lightning Network. The 402 response includes a BOLT11 invoice and a macaroon token. Pay the invoice, then include the macaroon and preimage in subsequent requests:
Authorization: L402 <macaroon>:<preimage_hex>
The WWW-Authenticate header on 402 responses contains the invoice and macaroon.
Pay USDC on Base (Coinbase L2). Use the @x402/fetch client for automatic payment handling:
npm install @x402/fetch
const { wrapFetch } = require('@x402/fetch');
const fetch = wrapFetch('your-base-wallet-key');
const res = await fetch('https://dispatches.mystere.me/api/v1/fees');
The PAYMENT-REQUIRED header on 402 responses contains the x402 payment details. Facilitator: api.cdp.coinbase.com