Skip to content
onelayer.
All tools

Tool detail

onchain-price

Returns the on-chain USD spot price for a crypto, stablecoin, forex or precious-metal symbol from Chainlink feeds or the top Base DEX pool.

Categories: Onchain data, Market prices

Use when

  • get the current USD price of a crypto asset on-chain
  • get a forex or precious-metal spot price from on-chain sources
  • price a Base-native token from its DEX pool

Not for

  • not a historical price series — spot price only
  • not order book or trade-level data

Inputs

GET query param: token (string symbol, e.g. ETH, USDC, EUR, XAU) (required)

Admitted input schema

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Symbol to price. Crypto e.g. ETH, BTC, SOL, XRP, DEGEN. Stablecoin e.g. USDT, USDC, USDe. Forex e.g. EUR, GBP, JPY. Metal e.g. XAU (gold), XAG (silver)."
    }
  },
  "required": [
    "token"
  ],
  "additionalProperties": false
}

Endpoint

Method
GET
URL
https://api.agentstools.dev/price

Payment

Protocol
x402
Listed price
0.01 USDC per call on Base
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.agentstools.dev/price
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z