BTNS API - Block BTNS API
Method Endpoint Returns
GET /api/block/{block} Returns basic block information
Return Values
Value Type Description
block_index Integer The block index (i.e. block height)
hashes Object Hashes for the block
balances String Balances Ledger hash
credits String Credits Ledger hash
debits String Debits Ledger hash
txlist String Transactions Ledger hash
timestamp Integer A UNIX timestamp of when the block was processed by the network
Example Response
{
    "block_index": 802481,
    "hashes": {
        "balances": "bc9b166366b086a06a4213a07659264f25da8d953a59dd6d09fe319efb055329",
        "credits": "3da0339c28b7bc4d847f0cd05af0bf44821c3f733f1ad9e4049348fbc5580496",
        "debits": "01a742e9f6110fc638ec2370a00ed54c84e0fb20a1a667f42677db192a7bcf23",
        "txlist": "32f072d11bd65e643b34eccf95261377f67422047dbdb7951492b8c16c11a0f9"
    },
    "timestamp": 1691648184
}