QuittanceConsole ↗

Gateway docs

From a 402 response to a signed receipt.

The gateway

Quittance gives each API request a price and each delivery a receipt. The workbench uses a disposable browser signer with 1.00 test credit. Reload the same browser to keep the signer and see its receipts.

Choose a model

GET /v1/models lists the enabled models. POST /v1/chat/completions accepts model, messages and max_tokens for non-streaming calls. Auto routes questions about the latest block to Elysium RPC and other prompts to the configured language models. The embedded guide retrieves passages from the protocol documentation.

Sign a request

The first POST returns HTTP 402 and a base64 JSON Payment-Required header. Its exact requirement gives the price in six-decimal units, the payee, the asset and eip155:99901. Read the nonce and validity bounds from extensions.sandbox.

Sign an EIP-3009 TransferWithAuthorization using EIP-712. Use your signer for from, accepts[0].payTo for to, and accepts[0].amount for value. Copy validAfter, validBefore and nonce from extensions.sandbox. The domain is Sandbox USD, version 2, chain ID 99901. Use the challenge asset as verifyingContract.

Repeat the identical POST with a base64 JSON Payment-Signature header containing x402Version 2, the selected accepted requirement, and payload with the authorization and signature. A verified response carries Payment-Response. The stored nonce binds the request path, input, delivery and amount.

Test settlement

Resource debits are recorded in the gateway database. The sandbox asset has no deployed contract. No transaction is broadcast. A model call costs 0.016 credits, language ID costs 0.012, sentiment costs 0.008, and a block read costs 0.004. A retry returns the recorded receipt.

Check delivery

A completed call returns 200 with its output. Choose Withhold output to open a 202 test case. The receipt records its status and debit. Its history belongs to the signer who paid.

Request a refund and review the evidence. A missing output releases the held credit. If a refund is declined, or the twenty-second review window passes, escalate it. The workbench resolves the case by comparing the stored output to its digest.

Elysium

The block reader checks chain ID 99901 and requests the latest block from elysium-rpc.publicnode.com. The receipt records the actual block number, hash, time and transaction count. The public landing readout can be refreshed without paying a test credit.

Open workbench ↗