MoneyDevKit L402 demo

AetherTraffic API

Precise, current orbital traffic intelligence for agents and developers. Query satellites, stations, transfer vehicles, rockets, and debris with pay-per-call Lightning access.

Demo environment: orbital data is fictional and designed to show the payment flow.

live demo feed13:44 UTC
Tracked18,421
Paid routeL402
Median age1.8s
critical
DF-5520

618 km · LEO debris crossing sun-sync lane

conjunction
Helios Upper Stage

24,210 km · Covariance overlap in 31 hours

watch
EquatorNet 6

35,786 km · Drifting near station box limit

Per-call prices from 75 sats
No API keys for consumers
Agent wallet ready
Macaroon + preimage auth

Agent handoff

Tell your agent to read one file.

The public llms.txt explains the API contract, the L402 retry format, and how to install the MoneyDevKit agent wallet. If the wallet needs funds, the agent should ask the user to fund it from Cash App, Strike, Phoenix, Alby, or another Bitcoin Lightning wallet.

agent-runbook.sh
npx @moneydevkit/agent-wallet@latest init
npx @moneydevkit/agent-wallet@latest balance

curl -i https://your-domain.example/api/orbit/traffic
# 402 -> read macaroon + invoice

npx @moneydevkit/agent-wallet@latest send "$INVOICE"
curl https://your-domain.example/api/orbit/traffic \
  -H "Authorization: L402 $MACAROON:$PREIMAGE"

API surface

Orbital traffic over ordinary HTTP.

The protected endpoint is just a Next.js route wrapped by MoneyDevKitwithPayment. Unpaid requests get an invoice; paid retries get JSON.

GET/api/orbit/traffic75 sats

Current fake orbital traffic snapshot, filtered by band and risk.

GET/api/orbit/traffic?detail=full250 sats

Full object notes and richer telemetry in the same L402 flow.

GET/llms.txtfree

Agent-facing instructions for wallet setup, payment, and retry auth.

L402 payment loop

Payment is the credential.

  1. Agent requests protected orbital data.
  2. API returns 402 with invoice and macaroon.
  3. Agent wallet pays over Lightning.
  4. Agent retries with L402 proof and receives JSON.

Human checkout

Same app, human checkout path.

This demo also follows the MoneyDevKit Next.js setup with /api/mdk, the checkout plugin, and a hosted checkout route for a human buyer flow.

Implementation

What is wired into this demo.

MoneyDevKit Next.js

@moneydevkit/nextjs is installed, next.config.mjs uses the checkout plugin, and /api/mdk exposes the MDK endpoint.

L402 protected data

/api/orbit/traffic uses withPayment with dynamic sat pricing for standard, risk, and full-detail queries.

Agent wallet runbook

/llms.txt gives agents exact commands for wallet init, balance checks, funding requests, invoice payment, and auth retry.