Skip to content

Unibase Pay Quick Start

https://api.x402.unibase.com/v2

There is no /health endpoint. GET /supported doubles as a liveness probe and tells you what the facilitator currently accepts:

Terminal window
curl https://api.x402.unibase.com/v2/supported
Method Endpoint Description
POST /verify Check a payment payload without settling it
POST /settle Settle a payment on-chain
GET /supported Scheme and network pairs served

/verify and /settle are POST only.

  1. Server returns 402 with its payment requirements
  2. Client signs a payment payload and retries
  3. Server calls /verify, serves the resource, then calls /settle
  • Networks — BNB Smart Chain, BSC Testnet, Base, Base Sepolia, Polygon, Arbitrum One
  • Schemes — exact (fixed amount), upto (metered, settle actual usage), batch-settlement (many micropayments, one transaction)
  • Assets — ERC-20 via Permit2; EIP-3009 gasless transfers

Read GET /supported at runtime rather than hardcoding this list.