network

Get the network exchange rate to estimate costs

Returns the network's exchange rate, current and next.

get/api/v1/network/exchangerate

Query parameters

timestampstring[]

The consensus timestamp as a Unix timestamp in seconds.nanoseconds format with an optional comparison operator. See unixtimestamp.com for a simple way to convert a date to the 'seconds' part of the Unix time.

Response

OK

timestampstring

A Unix timestamp in seconds.nanoseconds format

Example response

{
  "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"
}

Changes

Changed in 1 of the 53 revisions of this API.6

    • the response property _status/messages/items/data became nullable for the status 400

      response-property-became-nullable

    • the response property _status/messages/items/data became nullable for the status 404

      response-property-became-nullable

    • the response property _status/messages/items/data became nullable for the status 500

      response-property-became-nullable

    • the response property _status/messages/items/detail became nullable for the status 400

      response-property-became-nullable

    • the response property _status/messages/items/detail became nullable for the status 404

      response-property-became-nullable

    • the response property _status/messages/items/detail became nullable for the status 500

      response-property-became-nullable

    This revision also has 22 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog