⚡ PYTHPAY
Try the API →
Live on Solana Mainnet

PAY PER QUERY.
REAL-TIME CRYPTO PRICES.

The first x402 payment-gated price oracle. Send 0.002 USDC on Solana, get institutional-grade BTC, ETH, or SOL prices from Pyth Network — instantly.

Get API Access → View Dashboard ↗
0.002
USDC/query
400ms
Refresh rate
3
Assets (BTC/ETH/SOL)
Pyth
Network data
Live BTC/USD
Loading...
Free endpoint · /btc-price-public
Simple Integration

How It Works

💸
Step 1

Send USDC

Send 0.002 USDC to our Solana wallet on mainnet. Any wallet, any SPL-compatible app.

wGprrfgGS7awVGVXKgYvT3EHCWaNh5ZWJSJCCrLGD2Y
🔑
Step 2

Pass TX Signature

Include your confirmed transaction signature in the X-Payment-Tx header with your API request.

📊
Step 3

Get Price Data

Receive real-time price with confidence interval directly from Pyth Hermes. Each tx signature is single-use.

Example Request
curl https://pythpay.dev/btc-price \
  -H "X-Payment-Tx: YOUR_TX_SIGNATURE"
No Subscriptions

Pay Only What You Use

BTC Price

GET /btc-price
0.002 USDC
per query
Ξ

ETH Price

GET /eth-price
0.002 USDC
per query

SOL Price

GET /sol-price
0.002 USDC
per query
Best Value
📦

Bundle

GET /prices
0.003 USDC
BTC + ETH + SOL in one call
Payment Destination
Wallet (SOL mainnet)
wGprrfgGS7awVGVXKgYvT3EHCWaNh5ZWJSJCCrLGD2Y
USDC Mint
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
Developer Docs

API Reference

Base URL: https://pythpay.dev

Endpoints

GET /btc-price 0.002 USDC
GET /eth-price 0.002 USDC
GET /sol-price 0.002 USDC
GET /prices 0.003 USDC
GET /btc-price-public Free
GET /status Free
GET /prepare-payment Free

Example Response

200 OK
{
  "source": "Pyth Hermes",
  "feed": "BTC/USD",
  "asset": "BTC",
  "price": 84231.45,
  "confidence": 12.34,
  "publishTime": 1710720000,
  "fetchedAt": "2024-03-18T01:00:00.000Z"
}
Required Header for Paid Endpoints
X-Payment-Tx: <your_confirmed_solana_tx_signature>
View Full Dashboard →