Blocks

List All Blocks

The Public API may be used to query for blocks. This dataset contains millions of blocks; thus for analytical purposes, we recommend you query the database directly.

Method: GET

https://ark.nownodes.io/api/blocks?page=1&limit=100

Example response: 200

{
    "meta": {
        "totalCountIsEstimate": true,
        "count": 100,
        "pageCount": 280188,
        "totalCount": 28018708,
        "next": "/blocks?page=2&limit=100&transform=true",
        "previous": null,
        "self": "/blocks?page=1&limit=100&transform=true",
        "first": "/blocks?page=1&limit=100&transform=true",
        "last": "/blocks?page=280188&limit=100&transform=true"
    },
    "data": [
        {
            "id": "9e08a46cb6bc808ef1743883ed3288df2e7beb74d3bf73735a79d5c5f2e22c35",
            "version": 0,
            "height": 28012375,
            "previous": "4327d528142b9b720173cab3e78ba0efe56d544b331ba60651cfb42389f67764",
            "forged": {
                "reward": "200000000",
                "fee": "0",
                "amount": "0",
                "total": "200000000"
            },
            "payload": {
                "hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
                "length": 0
            },
            "generator": {
                "username": "arkvalidator1",
                "address": "AKBMhh2oTrkMznDzVf35AMPJDGpuazzH9M",
                "publicKey": "02666059f6007c82220aa579bc9a99272fac396d9dfbafe109492f0a05557054fb"
            },
            "signature": "3045022100bc668246ad0478b3db0c2cfde7c2ad49699056ccbace8a45051a6f443cf7ba66022009e0fa7c112068dc1c6fd40198b0d75ab21b4c5c52b2d56a996fd9a2ce899cc4",
            "confirmations": 0,
            "transactions": 0,
            "timestamp": {
                "epoch": 225857280,
                "unix": 1715958480,
                "human": "2024-05-17T15:08:00.000Z"
            }
        },
        {
            "id": "4327d528142b9b720173cab3e78ba0efe56d544b331ba60651cfb42389f67764",
            "version": 0,
            "height": 28012374,
            "previous": "39c6f6eea977cc739c7bb4a974a8890e3621805cc13a94972571713787a308ad",
            "forged": {
                "reward": "200000000",
                "fee": "0",
                "amount": "0",
                "total": "200000000"
            },
...

Retrieve first block

Retrieve first block.

Method: GET

https://ark.nownodes.io/api/blocks/first

Example response: 200

{
    "data": {
        "id": "4366553906931540162",
        "version": 0,
        "height": 1,
        "previous": "0",
        "forged": {
            "reward": "0",
            "fee": "0",
            "amount": "12500000000000004",
            "total": "0"
        },
        "payload": {
            "hash": "6e84d08bd299ed97c212c886c98a57e36545c8f5d645ca7eeae63a8bd62d8988",
            "length": 313052
        },
        "generator": {
            "address": "AdLb2r8XEmhNqW3CXyNGEEVZxXAfvTqPWR",
            "publicKey": "03a4d147a417376742f9ab78c7c3891574d19376aa62e7bbddceaf12e096e79fe0"
        },
        "signature": "3045022100c442ef265f2a7fa102d61e9a180e335fd17e8e3224307dadf8ac856e569c5c5102201a34cb1302cf4e0887b45784bfbdaf5cfbc44f6d6dad638d56bafa82ec96fd45",
        "confirmations": 28012382,
        "transactions": 1492,
        "timestamp": {
            "epoch": 0,
            "unix": 1490101200,
            "human": "2017-03-21T13:00:00.000Z"
        }
    }
}

Retrieve last block

Retrieve last block.

Method: GET

https://ark.nownodes.io/api/blocks/last

Example response: 200

{
    "data": {
        "id": "de3fc945501a1923d629578db938d76f2c3b9bcbd8b3e45bea1d0613163acea0",
        "version": 0,
        "height": 28012398,
        "previous": "7da0cb7cc0de41b43abdd019d71d6c91c9af71c239005f295f740b63d70584c0",
        "forged": {
            "reward": "200000000",
            "fee": "0",
            "amount": "0",
            "total": "200000000"
        },
        "payload": {
            "hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "length": 0
        },
        "generator": {
            "username": "dev51",
            "address": "AWBW9QD53oArEEEb965KiRxTXDPKv2iWn8",
            "publicKey": "020cafa960cd435d271f4207f1a89900de32ba678a0fbb05455f82cbaf22bce3a5"
        },
        "signature": "3045022100e808856c9c0c730ab32815d7881258b467cd7c6c5c08e3b0891195c61252076a02206f9f7b2e669618bc493424335f3b0a51bf62e7dfbfd0d561d1d2d681a4853743",
        "confirmations": 0,
        "transactions": 0,
        "timestamp": {
            "epoch": 225857464,
            "unix": 1715958664,
            "human": "2024-05-17T15:11:04.000Z"
        }
    }
}

Retrieve a block

Blocks may be retrieved by ID or by height. The height is an incremental integer.

Method: GET

https://ark.nownodes.io/api/blocks/28012413

Example response: 200

{
    "data": {
        "id": "64d5c1bb9b4a5949c117894fd92f95f729c806b8d608e01c488632210ec95f3a",
        "version": 0,
        "height": 28012413,
        "previous": "95beb000dfb408de2f470fba7cd371f4b29da93780bffefea7ded63fe29dfad8",
        "forged": {
            "reward": "200000000",
            "fee": "0",
            "amount": "0",
            "total": "200000000"
        },
        "payload": {
            "hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "length": 0
        },
        "generator": {
            "username": "dutch_pool",
            "address": "AbxUBkEmEGb3kahQUKJ6LfqsKWGcy3nTij",
            "publicKey": "03242784474bc911c482861d18d5974c2c79ed61f931982e1ce42e3e3994559e41"
        },
        "signature": "3045022100db969fa735448dbe93b08aae4f02b105b550ac19833c264fb78d792014dbb6d90220079c84b9e71615307140636114668a5f315322f84598948bfa4e3b6d3e2893e4",
        "confirmations": 0,
        "transactions": 0,
        "timestamp": {
            "epoch": 225857584,
            "unix": 1715958784,
            "human": "2024-05-17T15:13:04.000Z"
        }
    }
}

List All Transactions in a Block

Instead of deserializing the block’s payload; you can also obtain the transactions of each block as proper transaction objects directly.

Method: GET

https://ark.nownodes.io/api/blocks/28012413/transactions?page=1&limit=100

Example response: 200

{
    "meta": {
        "totalCountIsEstimate": true,
        "count": 0,
        "pageCount": 2,
        "totalCount": 132,
        "next": "/blocks/28012413/transactions?page=2&limit=100&transform=true",
        "previous": null,
        "self": "/blocks/28012413/transactions?page=1&limit=100&transform=true",
        "first": "/blocks/28012413/transactions?page=1&limit=100&transform=true",
        "last": "/blocks/28012413/transactions?page=2&limit=100&transform=true"
    },
    "data": []
}

Last updated