openapi: 3.2.0 info: title: anchor-x402 Price API description: 18 pay-per-call x402 services for AI agents — on-chain anchoring & attestation, wallet/address security screening, Web3 data (tx & calldata decode, ENS, token prices), x402 spend accounting, content analysis, and verifiable randomness. No API keys or accounts; settle per request in USDC on Base or Solana. $0.001–$1.77 per call. version: 0.3.0 x-guidance: Pay-per-call x402 services for AI agents — no API keys or accounts. Each paid route returns HTTP 402 with x402 payment requirements; pay in USDC on Base or Solana (select routes also settle JPYC on Polygon) and retry with the payment header. Prices are $0.001–$1.77 per call. POST routes take a JSON body per each operation's requestBody schema. contact: email: hypeprinter007@gmail.com x-logo: url: https://api.anchor-x402.com/icon.png altText: anchor-x402 tags: - name: Price paths: /v1/price/token: post: summary: Look up a token's current price in US dollars operationId: token_price_post_v1_price_token_post requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/_TokenPriceBody' responses: '200': description: Successful Response content: application/json: schema: $ref: '#/components/schemas/TokenPriceResponse' '422': description: Validation Error content: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' '402': description: Payment Required x-payment-info: price: mode: fixed currency: USD amount: '0.001000' protocols: - x402: {} tags: - Price components: schemas: ValidationError: properties: loc: items: anyOf: - type: string - type: integer type: array title: Location msg: type: string title: Message type: type: string title: Error Type input: title: Input ctx: type: object title: Context type: object required: - loc - msg - type title: ValidationError TokenPriceResponse: properties: symbol: anyOf: - type: string - type: 'null' title: Symbol name: anyOf: - type: string - type: 'null' title: Name contract: anyOf: - type: string - type: 'null' title: Contract chain: anyOf: - type: string - type: 'null' title: Chain usd: type: number title: Usd usd_24h_change_pct: anyOf: - type: number - type: 'null' title: Usd 24H Change Pct market_cap_usd: anyOf: - type: number - type: 'null' title: Market Cap Usd source: type: string title: Source default: coingecko fetched_at: type: integer title: Fetched At age_seconds: type: integer title: Age Seconds type: object required: - usd - fetched_at - age_seconds title: TokenPriceResponse _TokenPriceBody: properties: symbol: anyOf: - type: string - type: 'null' title: Symbol description: Token symbol like 'ETH', 'BTC', 'SOL', 'USDC'. Mutually exclusive with chain+contract. chain: anyOf: - type: string - type: 'null' title: Chain description: 'Chain slug: base, ethereum, solana, polygon, arbitrum, optimism, bsc, avalanche. Use with contract.' contract: anyOf: - type: string - type: 'null' title: Contract description: Token contract address. Requires chain. type: object title: _TokenPriceBody HTTPValidationError: properties: detail: items: $ref: '#/components/schemas/ValidationError' type: array title: Detail type: object title: HTTPValidationError