Skip to main content
GET
HBAR/USD rate
This endpoint is paid. Read Paying for a request for the 402 handshake, or let BuyerAgent.hbarRate() handle it.

Headers

PAYMENT-SIGNATURE
string

x402 payment payload (base64 JSON) built from the PAYMENT-REQUIRED challenge of the 402 answer. Omit on the first call to receive the price. BuyerAgent and @x402/fetch set this for you. The legacy name X-PAYMENT is also accepted.

Query Parameters

quoteId
string

Quote to pin the price to, from requestQuote with endpointId hbar-rate.

Response

Current rate

pair
enum<string>
required
Available options:
HBAR/USD
usdPerHbar
number
required

centsPerHbar / 100

centsPerHbar
number
required

cent_equivalent / hbar_equivalent from the network exchange rate file

source
string
required
expirationTime
integer
required

Unix seconds at which the network rate expires

fetchedAt
string<date-time>
required
agora
object
required