Blocks


Height

Gets the current height of the blockchainn.

If max_time is speified this returns highest block height that was valid (but not equal to) the given time.max_time can be given as an ISO8601 timestamp or relative time can be used.

GET https://api.helium.io/v1/blocks/height

Query Parameters

paramTypeNote
max_time (optional)stringLast time to include in height search

Block Stats

Get statistics on block production times.


GET https://api.helium.io/v1/blocks/stats

No Parameters

--

Block Descriptions


GET https://api.helium.io/v1/blocks

Retrieves block descriptions. Blocks descriptions are paged. A cursor field will be in the response when more results are available.

Query Parameters

paramTypeNote
cursor (optional)stringCursor for page to fetch

Block at Height

GET https://api.helium.io/v1/blocks/:height

Get block descriptor for block at height

Path Parameters

paramTypeNote
height (required)numberBlockchain Height

Block at Height Transactions

GET https://api.helium.io/v1/blocks/:height/transactions

Get transactions for a block at a given height. The list of returned transactions is paged. A cursor field is present if more results are available.

Path Parameters

paramTypeNote
height (required)numberBlock height to fetch transaction for

Query Parameters

paramTypeNote
cursor (optional)stringCursor for the page to fetch

Block at Hash

GET https://api.helium.io/v1/blocks/hash/:hash

Get block descriptor for the given block hash.

Path Parameters

paramTypeNote
hash (required)stringBlock hash for the block to fetch

Block at Hash Transactions

GET https://api.helium.io/v1/blocks/hash/:hash/transactions

Get transactions for a block at a given block hash. The list of returned transactions is paged. A cursor field is present if more results are available.

Path Parameters

paramTypeNote
hash (required)stringBlock hash for the block to fetch

Query Parameters

paramTypeNote
cursor (optional)stringCursor for the page to fetch