ToolAssay

Use when a trading agent needs many token prices at once plus the price impact o

Use when a trading agent needs many token prices at once plus the price impact of a buy. Input: tokens (≤25, base:0x… or sol:<mint>, ≤10 Solana), amount_usd (default 1000) or amounts (up to 5 USD sizes). Output: per token priceUsd, confidence, pool, depth and buy estimates: tokensOut, effectivePriceUsd, priceImpactPct (Uniswap v3 QuoterV2 / Aerodrome, Orca CLMM). Example: ?tokens=base:0x4200000000000000000000000000000000000006&amounts=1000,100000

Not tested: has real-world effectsour last check, 2026-11-28
0 of 0checks answered this week
n/amedian answer time
$0.008listed price per call
n/aprice it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

GET https://1gateway.dev/v1/onchain/prices/batch

CategoryMarket data
Provider host1gateway.dev
Networkseip155:137, eip155:143, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

We never call tools that send, buy, move money or file anything, not even without paying.

Example input (from the provider)

{
  "method": "GET",
  "queryParams": {
    "amount_usd": 5000,
    "amounts": "1000,100000",
    "tokens": "base:0x4200000000000000000000000000000000000006,base:0x940181a94A35A4569E4529A3CDfB74e38FD98631"
  },
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "additionalProperties": false,
          "properties": {
            "amount_usd": {
              "default": 1000,
              "description": "Size of the buy to estimate, in USD (default 1000)",
              "maximum": 10000000,
              "minimum": 1,
              "type": "number"
            },
            "amounts": {
              "description": "Up to 5 USD buy sizes for a price-impact curve (instead of amount_usd); each price row gets trades[]",
              "maxLength": 80,
              "pattern": "^\\d{1,8}(,\\d{1,8}){0,4}$",
              "type": "string"
            },
            "tokens": {
              "description": "Comma-separated chain:address list, max 25 (\u226410 Solana). Bad input \u2192 400 before payment (not charge\u2026",
              "pattern": "^(?:base|sol|solana):[0-9A-Za-z]{32,44}(?:,(?:base|sol|solana):[0-9A-Za-z]{32,44})*$",
              "type": "string"
            }
          },
          "required": [
            "tokens"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "additionalProperties": true,
          "properties": {
            "amountUsd": {
              "type": "integer"
            },
            "asOf": {
              "additionalProperties": true,
              "properties": {
                "at": {
                  "type": "string"
                },
                "baseBlock": {
                  "type": "integer"
                },
                "solanaSlot": {
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "cached": {
              "type": "boolean"
            },
            "method": {
              "additionalProperties": true,
              "properties": {
                "cacheSeconds": {
                  "type": "integer"
                },
                "price": {
                  "type": "string"
                },
                "trade": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "notes": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "prices": {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array"
            },
            "rpc": {
              "additionalProperties": true,
              "properties": {
                "kind": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "required": [
            "amountUsd",
            "prices",
            "asOf",
            "rpc",
            "cached",
            "method",
            "notes"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON