Get Exchange Rate
Get the network exchange rate to estimate costs.
This method will use 20
Compute Units.
Returns the network's exchange rate, current and next.
Query parameters
timestampstring[]OptionalExample:
The consensus timestamp in seconds.nanoseconds format with an optional comparison operator
{"summary":"--","value":""}
Responses
200
OK
application/json
400
Invalid parameter
application/json
404
Not Found
application/json
500
Service Unavailable
application/json
get
GET /v1/YOUR_API_KEY/api/v1/network/exchangerate HTTP/1.1
Host: mainnet.hedera.validationcloud.io
Accept: */*
{
"current_rate": {
"cent_equivalent": 596987,
"expiration_time": 1649689200,
"hbar_equivalent": 30000
},
"next_rate": {
"cent_equivalent": 596987,
"expiration_time": 1649689200,
"hbar_equivalent": 30000
},
"timestamp": "1586567700.453054000"
}
Last updated
Was this helpful?