Treasure x402 Facilitator

Endpoints

MethodPathDescription
GET /facilitator/supported Returns the list of supported payment kinds.
POST /facilitator/verify Verifies a payment payload against requirements.
POST /facilitator/settle Settles a payment.
GET /api/swap Performs an x402 AMM Swap.

Required query parameters
network: Can be base or base-sepolia
fromToken: Can be USDC, MAGIC, SMOL, or MIO
toToken: Can be USDC, MAGIC, SMOL, or MIO
amountIn: Human readable input unit, like '10' for 10 USDC or 10 MAGIC/SMOL/MIO.

Example: swap $0.01 USDC to MIO on Base Sepolia

More Info