The guarantee
You pay only for successful calls. For every paid request, the gateway performs the following sequence:- Verify - the
PAYMENT-SIGNATUREyou attach is checked against the advertised price, network, and recipient. - Call upstream - the gateway forwards your validated request to the underlying provider (Alchemy, Helius).
- Settle on success - only if the upstream returned a successful response, the gateway submits your pre-signed transfer on-chain.
What you see back
On a successful paid request, the gateway returns the upstream’s JSON response plus anX-PAYMENT-RESPONSE header containing a proof of settlement:
transaction field is a standard Solana signature you can look up in any explorer. It is the canonical record that this call was paid for.
SIWX (Tokens API) responses never include this header because nothing is settled on-chain.
Non-custodial by design
- The gateway never holds your funds. Your
PAYMENT-SIGNATUREis a transfer you signed directly from your own wallet; settlement submits that transfer as-is. - The gateway never requests or stores your private keys.
- The gateway cannot settle a payment for more than the price advertised in the original
402challenge.
Replay protection
EachPAYMENT-SIGNATURE authorizes exactly one call. Submitting the same payment twice returns 400 Bad Request, the second call is not settled. This is enforced before the upstream call, so there is no way a paid request can be charged twice.
