75trust / 100

Token Price

by manylives.me in Onchain & crypto

x402 APIPassing, checked 12 min ago

Live US-dollar price of any Base network token, read directly from on-chain exchange pools (direct stablecoin pools and routes through wrapped ETH; the best quote wins). Returns price, route and pool fee tier.

GET https://manylives.me/paid/token/price

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
421 ms typical, 574 ms slowest 5%
Last check
12 min ago
Next check
in 20 min

How to call it

# bash or zsh: see the payment challenge (nothing is charged)
curl -g -i -X GET 'https://manylives.me/paid/token/price?amount=optional+token+amount+to+price%2C+default+1&token=0x...+token+contract+on+Base+%28required%29'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fmanylives.me%2Fpaid%2Ftoken%2Fprice
const res = await pay("https://manylives.me/paid/token/price?amount=optional+token+amount+to+price%2C+default+1&token=0x...+token+contract+on+Base+%28required%29");
console.log(await res.json());

Example input

{
  "amount": "optional token amount to price, default 1",
  "token": "0x... token contract on Base (required)"
}

Example output

{
  "amount": "1",
  "fee_tiers": [
    500
  ],
  "route": "WETH → USDC",
  "symbol": "WETH",
  "token": "0x4200000000000000000000000000000000000006",
  "usd_per_token": 2567.1,
  "usd_value": 2567.1
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
12 min agoPassed402489 ms$0.002
4 h agoPassed402497 ms$0.002
8 h agoPassed402546 ms$0.002
12 h agoPassed402377 ms$0.002
16 h agoPassed402574 ms$0.002
20 h agoPassed402510 ms$0.002
23 h agoPassed402710 ms$0.002
27 h agoPassed402400 ms$0.002
30 h agoPassed402460 ms$0.002
34 h agoPassed402526 ms$0.002
37 h agoPassed402421 ms$0.002
40 h agoPassed402400 ms$0.002
44 h agoPassed402398 ms$0.002
2 days agoPassed402387 ms$0.002
2 days agoPassed402530 ms$0.002