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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 12 min ago | Passed | 402 | 489 ms | $0.002 |
| 4 h ago | Passed | 402 | 497 ms | $0.002 |
| 8 h ago | Passed | 402 | 546 ms | $0.002 |
| 12 h ago | Passed | 402 | 377 ms | $0.002 |
| 16 h ago | Passed | 402 | 574 ms | $0.002 |
| 20 h ago | Passed | 402 | 510 ms | $0.002 |
| 23 h ago | Passed | 402 | 710 ms | $0.002 |
| 27 h ago | Passed | 402 | 400 ms | $0.002 |
| 30 h ago | Passed | 402 | 460 ms | $0.002 |
| 34 h ago | Passed | 402 | 526 ms | $0.002 |
| 37 h ago | Passed | 402 | 421 ms | $0.002 |
| 40 h ago | Passed | 402 | 400 ms | $0.002 |
| 44 h ago | Passed | 402 | 398 ms | $0.002 |
| 2 days ago | Passed | 402 | 387 ms | $0.002 |
| 2 days ago | Passed | 402 | 530 ms | $0.002 |