Oracle spot price
spot_priceLive Chainlink on-chain spot price for an asset (latestRoundData, with round metadata). Pass to as well to cross-convert two assets via their USD feeds, with both legs reported. Paid: call without x_payment to receive this call's exact terms (amount, asset, network), sign them, then call again with x_payment. The free pricing tool lists every price at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional second asset — converts `asset` into it instead of quoting USD. | |
| asset | Yes | Asset symbol with a Chainlink feed (call /prices/feeds free to list them). | |
| chain | No | Which chain's oracle to read. | base |
| amount | No | Amount to convert (with `to`). | |
| x_payment | No | Optional signed x402 payment payload (base64, what the X-PAYMENT header carries). Omit to receive the exact payment terms; sign them (e.g. @x402/fetch) and call again with this argument to settle and get the data. |