AP
Tax · x402 · early usage

Plexa /v1/quote — executable swap quote: the realizable fill price at your trade size,…

Plexa /v1/quote — executable swap quote: the realizable fill price at your trade size, not a mid/spot price feed. Returns price impact (bps), worst-case slippage, depth and the per-leg route across Base/Polygon/Arbitrum liquidity, from canonical on-chain quot…

by api.getplexa.com · discovered, not yet claimed by its owner · updated 2026-09-30

30d calls29
30d payers4
MethodPOST
Outputjson

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

Plexa /v1/quote — executable swap quote: the realizable fill price at your trade size, not a mid/spot price feed. Returns price impact (bps), worst-case slippage, depth and the per-leg route across Base/Polygon/Arbitrum liquidity, from canonical on-chain quoters. Call it before a swap to see what the fill actually costs. Informational data, not financial advice.

Tags: bazaar · builder-code

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-09-30
Input example from Bazaar metadata
{
  "chain": "base",
  "sizeUSD": "5000",
  "tokenIn": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "tokenOut": "0xE014d2A4da6E450f21b5050120D291e63c8940FD"
}
Output example
{
  "confidence": "low",
  "depthAtSize": 8527353.400367068,
  "executablePrice": 1705.4706800734136,
  "priceImpactBps": 441.2840739321799,
  "route": {
    "dex": "split",
    "legs": [
      {
        "dex": "slipstream",
        "feePips": 1,
        "pool": "0xa41Bc0AFfbA7Fd420d186b84899d7ab2aC57fcD1",
        "venue": "aerodrome-cl-1"
      },
      {
        "dex": "aerodrome",
        "pool": "0xCc68Cb8B514A2216D2eECe3A0e8597Ce483610eb",
        "stable": false,
        "venue": "aerodrome"
      }
    ]
  },
  "ts": 1790247318433,
  "validUntil": 1790247321433,
  "worstCaseSlippageBps": 441.2840739321799
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/32510.json for the price and payment options.
  3. Pay. Call GET https://api.getplexa.com/v1/quote. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with 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, Polygon, Arbitrum One, Solana, 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.02 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Polygon, Arbitrum One, Solana
Demand
29 calls · 4 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.020xd993eAfBA87cFfa2ca2CFF5A56EF89034575A7ef300s
exactPolygon
eip155:137
USDC$0.020xd993eAfBA87cFfa2ca2CFF5A56EF89034575A7ef300s
exactArbitrum One
eip155:42161
USDC$0.020xd993eAfBA87cFfa2ca2CFF5A56EF89034575A7ef300s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.02D6FqEyoFvkgGy4PpJjckHc3xRXhzL6mWQ25gz4rkVLor300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xd993eAfBA87cFfa2ca2CFF5A56EF89034575A7ef",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "payTo": "0xd993eAfBA87cFfa2ca2CFF5A56EF89034575A7ef",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "payTo": "0xd993eAfBA87cFfa2ca2CFF5A56EF89034575A7ef",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 300
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "D6FqEyoFvkgGy4PpJjckHc3xRXhzL6mWQ25gz4rkVLor",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "20000",
    "amountUsd": 0.02,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "confidence": {
          "description": "Engine confidence: high | medium | low",
          "type": "string"
        },
        "depthAtSize": {
          "description": "Realizable output at the requested size, in human units of tokenOut (NOT USD)",
          "type": "number"
        },
        "executablePrice": {
          "description": "REALIZABLE fill price for the full requested size — the price the swap actually executes at after price impact, NOT a mid/spot price feed. This is Plexa's core difference from a price oracle. Units: tokenOut PER tokenIn — for USDC→WETH a small number (WETH per 1 USDC), for the USDC→SOGNI example here a large one (SOGNI per 1 USDC); never the reciprocal.",
          "type": "number"
        },
        "priceImpactBps": {
          "description": "Price impact at this size, in basis points. Null when no defensible mid exists (P16) — impact is derived from the mid.",
          "type": [
            "number",
            "null"
          ]
        },
        "route": {
          "description": "Per-leg execution route (dex / pool / fee tier)",
          "type": "object"
        },
        "worstCaseSlippageBps": {
          "description": "Worst-case slippage, in basis points. Null when no defensible mid exists (P16).",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "confidence": "string",
    "depthAtSize": 0,
    "executablePrice": 0,
    "priceImpactBps": 0,
    "route": {},
    "worstCaseSlippageBps": 0
  },
  "type": "string"
}

Examples

curl
curl "https://api.getplexa.com/v1/quote"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://api.getplexa.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
}
Python
import httpx
res = httpx.get("https://api.getplexa.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 header

Details

Provider
api.getplexa.com
Endpoint
https://api.getplexa.com/v1/quote
Machine-readable
/resources/32510.json