← All packs

Paid pack · 21 sats ≈ $0.02

Hello World (L402 test pack)

Hello World — a 2-cent test pack. Exercises the full L402 flow (402 → pay → retry with proof) end-to-end so you can verify your wallet and client work before spending real money on a real pack.

What you get

A tiny zip containing HELLO.txt and a one-page README. Nothing useful on its own — the point is the flow, not the payload.

Why it exists

Before you spend real money on a real pack (or wire an agent up to pay for arbitrary L402 resources), you probably want to verify that your Lightning wallet, your client, and satsroad all talk to each other correctly. This pack costs ~2¢ — cheap enough to burn repeatedly while debugging, expensive enough to exercise every part of the L402 protocol end-to-end.

How to test

With the free l402-fetch.sh script:

bash scripts/l402-fetch.sh /pack/hello-world hello.zip
unzip -p hello.zip hello-world/HELLO.txt

Manually with curl:

# 1. Get the challenge
curl -i /pack/hello-world
# → 402 Payment Required, WWW-Authenticate: L402 macaroon="...", invoice="lnbc..."

# 2. Pay the bolt11 invoice with your wallet — you get a preimage back

# 3. Retry with the credential
curl -H "Authorization: L402 <macaroon>:<preimage>" \
     /pack/hello-world -o hello.zip

Next