/blockchain

Get block headers for minHeight <= height <= maxHeight. At most 20 items will be returned. Upon success, the Cache-Control header will be set with the default maximum age.

Parameters:

minHeight - int, Minimum block height to return

maxHeight- int, Maximumblock height to return

Example:

// Request
curl -X GET -H 'Content-Type: application/json'  https://zetachain.blockpi.network/rpc/v1/<your-api-key>/blockchain

// Result
{
    "jsonrpc": "2.0",
    "id": -1,
    "result": {
        "last_height": "2115614",
        "block_metas": [
            {
                "block_id": {
                    "hash": "77C737AE8A55AF5603E17028CB8CE4864852CCC707FA272001AF01A9F5DC92E3",
                    "parts": {
                        "total": 1,
                        "hash": "C5296D389BB5314A47246BFBA5AA5EA44BB0721447210E4E663A0BDF8460B7CD"
                    }