Buy a safety-checked Base DEX swap quote for USDC, WETH, EURC, cbETH, cbBTC, VIRTUAL, o…
Buy a safety-checked Base DEX swap quote for USDC, WETH, EURC, cbETH, cbBTC, VIRTUAL, or AERO. Returns unsigned calldata or a buyer-signable gasless payload; SafeRoute never holds funds, signs, or broadcasts.
by api.usesaferoute.com · discovered, not yet claimed by its owner · updated 2026-10-08
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Buy a safety-checked Base DEX swap quote for USDC, WETH, EURC, cbETH, cbBTC, VIRTUAL, or AERO. Returns unsigned calldata or a buyer-signable gasless payload; SafeRoute never holds funds, signs, or broadcasts.
Tags: crypto · swap · base · noncustodial · unsigned-transaction · bazaar · payment-identifier
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
{
"amount": "25",
"executionMode": "standard",
"from": "USDC",
"intentId": "intent_unique_1234567890",
"referralCode": "PARTNER_CODE",
"sourceAgentId": "buyer-agent-id",
"to": "WETH",
"wallet": "0x1111111111111111111111111111111111111111"
}{
"approvalRequired": false,
"buyAmount": "10000000000000000",
"buyToken": "0x4200000000000000000000000000000000000006",
"chainId": 8453,
"createdAt": "2026-01-01T00:00:00.000Z",
"executionMode": "standard",
"expiresAt": "2026-01-01T00:01:00.000Z",
"feeBps": 10,
"inputFormat": "simple",
"payloadHash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"quoteId": "00000000-0000-4000-8000-000000000000",
"receipt": {
"buyAmount": "10000000000000000",
"buyToken": "0x4200000000000000000000000000000000000006",
"chainId": 8453,
"createdAt": "2026-01-01T00:00:00.000Z",
"executionMode": "standard",
"expiresAt": "2026-01-01T00:01:00.000Z",
"feeBps": 10,
"feeRecipient": "0x3333333333333333333333333333333333333333",
"payloadHash": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"quoteId": "00000000-0000-4000-8000-000000000000",
"sellAmount": "25000000",
"sellToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"taker": "0x1111111111111111111111111111111111111111",
"usdcNotional": "25000000"
},
"receiptSignature": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sellAmount": "25000000",
"sellToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"simulation": {
"status": "passed"
},
"taker": "0x1111111111111111111111111111111111111111",
"transaction": {
"data": "0x",
"to": "0x2222222222222222222222222222222222222222",
"value": "0"
},
"usdNotional": "25000000"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/28672.jsonfor the price and payment options. - Pay. Call
GET https://api.usesaferoute.com/v1/quote. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.01 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Demand
- 3 calls · 3 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.01 | 0x08a6a2ddecdebdbfcb29d725042a6f3d74849e08 | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x08a6a2ddecdebdbfcb29d725042a6f3d74849e08",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"amountUsd": 0.01,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"additionalProperties": false,
"anyOf": [
{
"required": [
"transaction"
]
},
{
"required": [
"gasless"
]
}
],
"properties": {
"approvalRequired": {
"type": "boolean"
},
"approvalSpender": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"buyAmount": {
"pattern": "^\\d+$",
"type": "string"
},
"buyToken": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"chainId": {
"const": 8453,
"type": "integer"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"executionMode": {
"enum": [
"standard",
"gasless"
],
"type": "string"
},
"expiresAt": {
"format": "date-time",
"type": "string"
},
"feeAmount": {
"pattern": "^\\d+$",
"type": "string"
},
"feeBps": {
"const": 10,
"type": "integer"
},
"feeToken": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"gasless": {
"properties": {
"buyerMustSignAndSubmit": {
"const": true,
"type": "boolean"
},
"relayRequiresBuyerZeroXApiKey": {
"const": true,
"type": "boolean"
},
"relaySubmitEndpoint": {
"format": "uri",
"type": "string"
},
"target": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"trade": {
"type": "object"
}
},
"required": [
"trade",
"target",
"relaySubmitEndpoint",
"relayRequiresBuyerZeroXApiKey",
"buyerMustSignAndSubmit"
],
"type": "object"
},
"inputFormat": {
"enum": [
"simple",
"advanced"
],
"type": "string"
},
"minBuyAmount": {
"pattern": "^\\d+$",
"type": "string"
},
"payloadHash": {
"pattern": "^0x[a-fA-F0-9]{64}$",
"type": "string"
},
"quoteId": {
"format": "uuid",
"type": "string"
},
"receipt": {
"additionalProperties": false,
"properties": {
"attribution": {
"additionalProperties": false,
"properties": {
"intentId": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"referralCode": {
"maxLength": 64,
"minLength": 3,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"sourceAgentId": {
"maxLength": 128,
"minLength": 1,
"type": "string"
}
},
"type": "object"
},
"buyAmount": {
"pattern": "^\\d+$",
"type": "string"
},
"buyToken": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"chainId": {
"const": 8453,
"type": "integer"
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"executionMode": {
"enum": [
"standard",
"gasless"
],
"type": "string"
},
"expiresAt": {
"format": "date-time",
"type": "string"
},
"feeAmount": {
"pattern": "^\\d+$",
"type": "string"
},
"feeBps": {
"const": 10,
"type": "integer"
},
"feeRecipient": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"feeToken": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"gaslessTarget": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"payloadHash": {
"pattern": "^0x[a-fA-F0-9]{64}$",
"type": "string"
},
"quoteId": {
"format": "uuid",
"type": "string"
},
"sellAmount": {
"pattern": "^\\d+$",
"type": "string"
},
"sellToken": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"taker": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"transactionTo": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"transactionValue": {
"pattern": "^\\d+$",
"type": "string"
},
"usdcNotional": {
"pattern": "^\\d+$",
"type": "string"
}
},
"required": [
"quoteId",
"chainId",
"createdAt",
"expiresAt",
"sellToken",
"buyToken",
"sellAmount",
"buyAmount",
"taker",
"executionMode",
"usdcNotional",
"feeBps",
"feeRecipient",
"payloadHash"
],
"type": "object"
},
"receiptSignature": {
"pattern": "^[a-fA-F0-9]{64}$",
"type": "string"
},
"sellAmount": {
"pattern": "^\\d+$",
"type": "string"
},
"sellToken": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"simulation": {
"additionalProperties": false,
"properties": {
"reason": {
"type": "string"
},
"status": {
"enum": [
"passed",
"skipped",
"failed"
],
"type": "string"
}
},
"required": [
"status"
],
"type": "object"
},
"taker": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"transaction": {
"additionalProperties": false,
"properties": {
"data": {
"pattern": "^0x[a-fA-F0-9]*$",
"type": "string"
},
"gas": {
"pattern": "^\\d+$",
"type": "string"
},
"gasPrice": {
"pattern": "^\\d+$",
"type": "string"
},
"to": {
"pattern": "^0x[a-fA-F0-9]{40}$",
"type": "string"
},
"value": {
"pattern": "^\\d+$",
"type": "string"
}
},
"required": [
"to",
"data",
"value"
],
"type": "object"
},
"transactionDataHash": {
"pattern": "^0x[a-fA-F0-9]{64}$",
"type": "string"
},
"usdNotional": {
"pattern": "^\\d+$",
"type": "string"
}
},
"required": [
"quoteId",
"chainId",
"createdAt",
"expiresAt",
"sellToken",
"buyToken",
"sellAmount",
"buyAmount",
"feeBps",
"executionMode",
"usdNotional",
"approvalRequired",
"taker",
"payloadHash",
"simulation",
"receipt",
"receiptSignature",
"inputFormat"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"approvalRequired": true,
"approvalSpender": "string",
"buyAmount": "string",
"buyToken": "string",
"chainId": 0,
"createdAt": "2026-01-01T00:00:00Z",
"executionMode": "standard",
"expiresAt": "2026-01-01T00:00:00Z",
"feeAmount": "string",
"feeBps": 0,
"feeToken": "string",
"gasless": {
"buyerMustSignAndSubmit": true,
"relayRequiresBuyerZeroXApiKey": true,
"relaySubmitEndpoint": "https://example.com",
"target": "string",
"trade": {}
},
"inputFormat": "simple",
"minBuyAmount": "string",
"payloadHash": "string",
"quoteId": "string",
"receipt": {
"attribution": {
"intentId": "string",
"referralCode": "string",
"sourceAgentId": "string"
},
"buyAmount": "string",
"buyToken": "string",
"chainId": 0,
"createdAt": "2026-01-01T00:00:00Z",
"executionMode": "standard",
"expiresAt": "2026-01-01T00:00:00Z",
"feeAmount": "string",
"feeBps": 0,
"feeRecipient": "string",
"feeToken": "string",
"gaslessTarget": "string",
"payloadHash": "string",
"quoteId": "string",
"sellAmount": "string",
"sellToken": "string",
"taker": "string",
"transactionTo": "string",
"transactionValue": "string",
"usdcNotional": "string"
},
"receiptSignature": "string",
"sellAmount": "string",
"sellToken": "string",
"simulation": {
"reason": "string",
"status": "passed"
},
"taker": "string",
"transaction": {
"data": "string",
"gas": "string",
"gasPrice": "string",
"to": "string",
"value": "string"
},
"transactionDataHash": "string",
"usdNotional": "string"
},
"type": "string"
}Examples
curl "https://api.usesaferoute.com/v1/quote"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://api.usesaferoute.com/v1/quote");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://api.usesaferoute.com/v1/quote")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- api.usesaferoute.com
- Endpoint
- https://api.usesaferoute.com/v1/quote
- Machine-readable
/resources/28672.json