LOOMAL
Back to discover

Bitcoin Whitepaper

Endpoint

GEThttps://api.loomal.ai/h/bitcoin-whitepaper

How to call it

Step 1 · Get the payment requirement

# Step 1 — Call the endpoint to retrieve the 402 payment requirement.
curl -i -X GET "https://api.loomal.ai/h/bitcoin-whitepaper"

The endpoint replies with HTTP 402 and a JSON body containing the price and a payment requirement under accepts[0].

Step 2 · Sign the payment

# Step 2 — Sign the payment requirement with your wallet or the Loomal SDK.
# Put the resulting header value into LOOMAL_PAYMENT_HEADER.

Use the Loomal SDK or any x402-aware wallet — both produce the header for you.

Step 3 · Retry with the X-Payment header

# Step 3 — Retry the request with the X-Payment header.
curl -X GET "https://api.loomal.ai/h/bitcoin-whitepaper" \
  -H "X-Payment: $LOOMAL_PAYMENT_HEADER"

Loomal verifies + settles on Base (~2s), then returns your configured response. The full dance is 3 round trips, ~2 seconds. See the buyer guide →

Quick test (without payment)

curl -i -X GET "https://api.loomal.ai/h/bitcoin-whitepaper"

Returns a 402 with the payment requirement. Useful to verify the endpoint is live.

Bitcoin Whitepaper — Loomal Discover | Loomal