Skip to content
onelayer.
All tools

Tool detail

price-impact

Estimates swap price impact (slippage) for a token pair and trade size by comparing Uniswap V3 quotes at minimal versus target size.

Categories: Defi, Onchain data

Use when

  • estimate slippage for a token swap before executing it
  • check how much a large trade moves the price on Uniswap V3
  • compare price impact across chains for a token pair

Not for

  • Uniswap V3 quotes only — not other DEXs or order books

Inputs

GET query params: tokenIn, tokenOut (strings, required); amount (default 1000), chain (default base) optional.

Admitted input schema

{
  "type": "object",
  "properties": {
    "amount": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Trade size in tokenIn units (default 1000)"
    },
    "chain": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "base (default), ethereum, arbitrum, optimism, polygon"
    },
    "tokenIn": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Input token (required)"
    },
    "tokenOut": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Output token (required)"
    }
  },
  "required": [
    "tokenIn",
    "tokenOut"
  ],
  "additionalProperties": false
}

Endpoint

Method
GET
URL
https://api.x402node.dev/defi/price-impact

Payment

Protocol
x402
Listed price
0.01 USDC per call on Base; Solana also accepted per listing.
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
GET https://api.x402node.dev/defi/price-impact
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z