81trust / 100

Crypto Prices

by x402.asterpay.io in Onchain & crypto

x402 APIPassing, checked 4 h ago

Aggregated crypto price feed — top tokens (BTC, ETH, SOL) + stablecoins (USDC, EURC). Paid via x402.

GET https://x402.asterpay.io/v2/x402/crypto/prices

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
445 ms typical, 445 ms slowest 5%
Last check
4 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.asterpay.io/v2/x402/crypto/prices?symbols=BTC%2CETH%2CSOL"
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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.asterpay.io%2Fv2%2Fx402%2Fcrypto%2Fprices
const res = await pay("https://x402.asterpay.io/v2/x402/crypto/prices?symbols=BTC%2CETH%2CSOL");
console.log(await res.json());

Example input

{
  "symbols": "BTC,ETH,SOL"
}

Example output

{
  "BTC": {
    "marketCap": 1940000000000,
    "price": 98450.23,
    "priceChange24h": 2.1,
    "symbol": "BTC",
    "volume24h": 45000000000
  },
  "ETH": {
    "marketCap": 416000000000,
    "price": 3465.5,
    "priceChange24h": -0.8,
    "symbol": "ETH",
    "volume24h": 18000000000
  },
  "USDC": {
    "price": 1,
    "priceChange24h": 0.01,
    "symbol": "USDC"
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 h agoPassed402445 ms$0.005