Skip to content
onelayer.
All tools

Tool detail

Token Price

Returns a crypto token's current USD price given either a symbol or a chain-and-contract address.

Categories: Market prices

Use when

  • get a token's current USD price by symbol
  • look up a token's price by chain and contract address

Not for

  • not historical price data
  • not for symbol and chain+contract together; they're mutually exclusive

Inputs

POST JSON body: symbol (string, e.g. BTC) OR chain+contract (strings) (all optional, mutually exclusive)

Admitted input schema

{
  "type": "object",
  "properties": {
    "chain": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Chain slug: base, ethereum, solana, polygon, arbitrum, optimism, bsc, avalanche."
    },
    "contract": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Token contract address. Required with chain."
    },
    "symbol": {
      "type": "string",
      "minLength": 0,
      "maxLength": 4096,
      "description": "Token symbol (BTC, ETH, SOL, USDC, …). Mutually exclusive with chain+contract."
    }
  },
  "required": [],
  "additionalProperties": false
}

Endpoint

Method
POST
URL
https://api.anchor-x402.com/v1/price/token

Payment

Protocol
x402
Listed price
0.001 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
POST https://api.anchor-x402.com/v1/price/token
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z