quote_usd
Convert any USD price into an exact XNO payment amount using the median of three independent sources. Receive a short-lived quote with address and expiry to complete payment.
Instructions
Price a call in dollars. Converts the USD price to the exact XNO amount
via the MEDIAN of three independent public price sources and returns
{request_id, address, price_raw, price_usd, rate_xno_usd, expires_at}.
The quote expires in <=30s; pay the exact price_raw to address before
that, then call verify_payment(request_id, price_raw). This is pure
computation — nothing is held or converted.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"price_usd": "<price_usd>"
},
"name": "quote_usd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price_usd | Yes | ||
| request_id | No |