The environment variables required for signing transactions are not loaded. The demo will not work until you restart the dev server.
HTTP-native payments for API access on Starknet
No response yet. Make a request to see the response here.
Send a standard HTTP GET request to the protected weather API endpoint. The server will detect no payment header and respond with HTTP 402 Payment Required, including payment details (amount, asset, recipient address, network) in the response body. This tells the client exactly how to construct and sign the payment.
402 Payment Required including payment requirementsKey Terms:
Client: Entity making HTTP request (buyer)
Server: Resource provider requiring payment (seller)
Facilitator: Service that verifies and settles payments
Key Features:
✓ HTTP-native protocol (uses 402 status code)
✓ Gasless for both client and server
✓ Chain and token agnostic (this demo uses Starknet)
✓ Open standard - no single party dependency