G

Getplexa · Quote

by Getplexa

POSTBaseSolanaArbitrumPolygon

$0.02

per call · USD Coin on Base

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.

Endpoint

POST https://api.getplexa.com/v1/quote

45

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.getplexa.com/v1/quote", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "chain": "base",
    "sizeUSD": "5000",
    "tokenIn": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "tokenOut": "0x4200000000000000000000000000000000000006"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.getplexa.com/v1/quote" \
  -H "Content-Type: application/json" \
  -d '{"chain":"base","sizeUSD":"5000","tokenIn":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","tokenOut":"0x4200000000000000000000000000000000000006"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "confidence": "high",
  "depthAtSize": 2.6386839328112384,
  "executablePrice": 0.0005277367865622476,
  "priceImpactBps": 0,
  "route": {
    "dex": "univ3",
    "legs": [
      {
        "dex": "univ3",
        "feePips": 500,
        "pool": "0xd0b53D9277642d899DF5C87A3966A349A798F224",
        "venue": "uniswap-v3"
      }
    ]
  },
  "ts": 1786022127490,
  "validUntil": 1786022130490,
  "worstCaseSlippageBps": 0
}

Payment details

Pay to0xd993eafba87cffa2ca2cff5a56ef89034575a7ef
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Getplexa & similar services

G

Getplexa · Pretrade Check

api.getplexa.com

Plexa /v1/pretrade/check — pre-trade token safety check on Base: can you still sell this token? avoid fires only on a trap proven on-chain now: no pool to exit into, an exit pot under 5% of your size, or the trading gate off (the honeypot shape). A drained pot is what a rug leaves behind — measured, not predicted. clear = no provable trap, NOT safe. risk_profile: token age, holder concentration, liquidity, transfer limits. Not financial advice.

POSTBaseOnchain Data
$0.05 / call44 calls / 30d
G

Getplexa · RUG Check

api.getplexa.com

Plexa /v1/pretrade/check — pre-trade token safety check on Base: can you still sell this token? avoid fires only on a trap proven on-chain now: no pool to exit into, an exit pot under 5% of your size, or the trading gate off (the honeypot shape). A drained pot is what a rug leaves behind — measured, not predicted. clear = no provable trap, NOT safe. Alias: same engine and price as /v1/pretrade/check.

POSTBaseOnchain Data
$0.05 / call1 calls / 30d
G

Getplexa · Token Safety

api.getplexa.com

Plexa /v1/pretrade/check — pre-trade token safety check on Base: can you still sell this token? avoid fires only on a trap proven on-chain now: no pool to exit into, an exit pot under 5% of your size, or the trading gate off (the honeypot shape). A drained pot is what a rug leaves behind — measured, not predicted. clear = no provable trap, NOT safe. Alias: same engine and price as /v1/pretrade/check.

POSTBaseOnchain Data
$0.05 / call1 calls / 30d