Skip to main content

/api/v1/network/exchangerate REST API Endpoint

Get the network exchange rate to estimate costs

Updated on
Dec 18, 2024

/api/v1/network/exchangerate REST API Endpoint

Query Parameters

timestamp
array
The consensus timestamp as a Unix timestamp in seconds.nanoseconds format with an optional comparison operator

Returns

current_rate
object
An object containing details about the current exchange rate
cent_equivalent
integer
The equivalent value of 1 HBAR in USD cents
expiration_time
integer
The expiration time of the current rate in Unix timestamp format
hbar_equivalent
integer
The equivalent value in HBAR for the cent equivalent provided
next_rate
object
An object containing details about the next exchange rate, which will take effect after the current rate expires
cent_equivalent
integer
The equivalent value of 1 HBAR in USD cents
expiration_time
integer
The expiration time of the next rate in Unix timestamp format.
hbar_equivalent
integer
The equivalent value in HBAR for the cent equivalent provided
timestamp
string
The timestamp at which the balances are retrieved (in seconds.nanoseconds format)
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free