Skip to main content

Oracle Prices


Current Oracle Price

GET https://api.helium.io/v1/oracle/prices/current

The current Oracle Price and at which block it took effect.

No Parameters


Current and Historical Oracle Prices

GET https://api.helium.io/v1/oracle/prices

The current and historical Oracle Prices and at which block they took effect. This route is paged using a cursor.

Path Parameters

paramTypeNote
max_block (optional)integerLast block number to include in the results
cursor (optional)stringReturned from an initial query, allowing client to fetch more results

Oracle Price Stats

GET https://api.helium.io/v1/oracle/prices/stats

Gets statistics on Oracle prices.

Query Parameters

paramTypeNote
min_time (required)stringFirst time to include in stats
max_time (required)stringLast time to include in stats

Oracle Price at a Specific Block

GET https://api.helium.io/v1/oracle/prices/:block

Provides the oracle price at a specific block and at which block it initially took effect.

Path Parameters

paramTypeNote
block (required)stringThe block to get the HNT Oracle Price at

List Oracle Activity

GET https://api.helium.io/v1/oracle/activity

List oracle price report transactions for all oracle keys. This route is paged with a cursor.

Path Parameters

paramTypeNote
cursor (optional)stringCursor for the next page to fetch
min_time (optional)stringFirst time to include data for
max_time (optional)stringLast time to include data for
limit (optional)numberMaximum number of items to return

List Activity for a Specific Oracle

GET https://api.helium.io/v1/oracle/:address/activity

Lists price report transactions for the given oracle key. This route is paged using a cursor.

Path Parameters

paramTypeNote
address (optional)stringThe public key of the oracle

Query Parameters

paramTypeNote
cursor (optional)stringCursor for the next page to fetch
min_time (optional)stringFirst time to include data for
max_time (optional)stringLast time to include data for
limit (optional)numberMaximum number of items to return

Get Predicted HNT Oracle Prices

GET https://api.helium.io/v1/oracle/predictions

This returns a list of expected times when the Oracle Price is expected to change.The blockchain operates in "block-time", meaning that blocks can come out at some schedule close to 1 per minute. Oracles report in "wall-clock-time", meaning they report what they believe the price should be.If the route returns one or more prices and times, it indicates that the chain is expected to adjust the price (based on Oracle reports) no earlier than the indicated time to the returned price.NOTE: A prediction may not be seen in the blockchain if they are close together (within 10 blocks) since block times may cause the blockchain to skip to a next predicted price. If no predictions are returned the current HNT Oracle Price is valid for at least 1 hour.

No Parameters