crypto_prices
Fetch spot cryptocurrency prices for comma-separated CoinGecko IDs in a chosen quote currency; calls are paid per use via x402, with free quotes when no wallet is configured.
Instructions
Get spot prices for comma-separated CoinGecko ids (default ripple,ripple-usd) in a quote currency (default usd). Price about $0.002. Paid per call with x402 from your XRPL_SEED wallet (XRP or RLUSD, capped by MAX_*PER_CALL and SESSION_BUDGET*). Without a wallet it returns the price quote and charges nothing. Failed calls are not charged.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "crypto_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vs | No | Quote currency, e.g. usd | |
| ids | No | Comma-separated CoinGecko ids | |
| asset | No | Asset to pay with on the XRP Ledger: XRP (default) or RLUSD |