Skip to main content

/api/v1/network/exchangerate REST API Endpoint

Get the network exchange rate to estimate costs

Updated on
Aug 23, 2024

/api/v1/network/exchangerate REST API Endpoint

Please note that this method is currently available only on the testnet and will be accessible on the mainnet soon.

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
1
curl 'https://docs-demo.hedera-mainnet.quiknode.pro/api/v1/network/exchangerate'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free