# x402 Trust & Discovery API — Onchain Token Price

> x402 Trust & Discovery API — Onchain Token Price is a paid API for AI agents from gkyf2bs3b4p35hwwg5zzsnejeu.srv.us, paid per call via x402, $0.001/call, status down (last checked 2026-10-03).

Returns the onchain price of a Base ERC-20 token for a given trade size in USD

## Facts

- Endpoint: GET https://gkyf2bs3b4p35hwwg5zzsnejeu.srv.us/v1/onchain/price?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-trust-discovery-api-onchain-token-price-05a677b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aPR0iRLoEbScsUjDJzESC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-trust-discovery-api-onchain-token-price-05a677b3
```

Example prompt: What's the current onchain price for the token at contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base for a $100 trade?

## When to prefer this

Use this endpoint when you need a keyless, no-payment-required onchain price quote for a Base ERC-20 token before executing a trade or making a payment decision. It is particularly useful in x402 agent workflows where you want to understand token value without committing funds. Prefer this over DEX APIs when you want a simple REST-based price lookup with no wallet interaction.

## Known failure modes

- Invalid or non-existent ERC-20 contract address returns an error
- Token with no onchain liquidity on Base cannot be priced
- Trade size of zero or negative value may be rejected
- Endpoint unavailable or server error returns non-200 response
- Stale or low-liquidity token may return inaccurate quote

## How this service works

Independent pre-purchase safety and reputation checks for x402 and MPP endpoints, plus keyless onchain data on Base. Accepts BOTH EIP-3009 and Circle Gateway credentials — only 141 of 788 Base-payable resources do, and a single-credential buyer is locked out of 53.8% of this market on one rail or 28.3% on the other. GET /v1/guard?url=&credential= answers whether the credential you carry can pay a given endpoint at all, before you try. Searching this market for "is this API endpoint a scam" returns registries and explorers but no dedicated service; that gap is what /v1/guard fills, inspecting an endpoint WITHOUT paying it and returning a go / test-with-minimum / do-not-pay verdict backed by onchain settlement history.

## Output

Returns onchain price data for the specified ERC-20 token on Base, calibrated to the requested trade size in USD. Likely includes a price quote or rate reflecting current liquidity conditions for that position size.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "number",
   "description": "Trade size in USD to quote at. Defaults to 100."
  },
  "token": {
   "type": "string",
   "description": "ERC-20 contract address on Base to price."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-trust-discovery-api-onchain-token-price-05a677b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gkyf2bs3b4p35hwwg5zzsnejeu.srv.us](https://www.zero.xyz/host/gkyf2bs3b4p35hwwg5zzsnejeu.srv.us/llms.txt)
