## Documentation Index Fetch the complete documentation index at: https://docs.relay.link/llms.txt Use this file to discover all available pages before exploring further.
## Agent Instructions To quote bridges and swaps, look up chains and tokens, or track Relay transactions from an agent, use the Relay MCP server: npx -y @relayprotocol/relay-mcp. It is read-only and does not sign or broadcast transactions. Setup: https://docs.relay.link/resources/developing-with-ai.md For Relay Protocol's trust model, security architecture, and audits, see https://docs.relay.link/references/protocol/security.md. For address screening, see https://docs.relay.link/security/transaction-screening.md.Get Token Price
This API returns the price of a token on a specific chain.
OpenAPI
openapi: 3.0.3
info:
title: Cross-chain solver
version: 1.0.0
servers:
- url: https://api.relay.link
description: Mainnet API
- url: https://api.testnets.relay.link
description: Testnet API
security: []
paths:
/currencies/token/price/v2:
get:
parameters:
- schema:
type: string
in: query
name: address
required: true
description: Token address to get price for
- schema:
type: number
in: query
name: chainId
required: true
description: Chain ID of the token
- schema:
type: string
in: header
name: x-api-key
required: false
description: Optional API key for authentication and higher rate limits.
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
price:
type: string
description: Token price in USD
'400':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: Error message
This documentation is built and hosted on Mintlify, a developer documentation platform.