Get Zilliqa Block Details By Block Height

Through this endpoint customers can obtain block details from the Zilliqa blockchain by providing the block Height parameter.

Single Result - This endpoint returns only one single result. GET /blockchain-data/zilliqa-specific/{network}/blocks/height/{blockHeight}

Path Parameters

  • Required
    network string

    Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while networks like "testnet", "ropsten" are test networks.

    Example : mainnet
    Possible Values : mainnet
  • Required
    blockHeight integer

    Represents the number of blocks in the blockchain preceding this specific block. Block numbers have no gaps. A blockchain usually starts with block 0 called the "Genesis block".

    Example : 1244298

Query parameters

  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString

Response schema

200 400 401 402 403 404 409 415 422 429 500
HTTP Status Code: 200
Content-Type: application/json

The request has been successful.

  • Object :

  • Required
    apiVersion string

    Specifies the version of the API that incorporates this endpoint.

    Example : 2021-03-20
  • Required
    requestId string

    Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.

    Example : 601c1710034ed6d407996b30
  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString
  • Required
    data object
    • Required
      item object
      • Required
        blockHash string

        Represents the hash of the block, which is its unique identifier. It represents a cryptographic digital fingerprint made by hashing the block header twice through the SHA256 algorithm.

        Example : 0xf679d0b5387f0b0b3c3c1f368305512b23860888ba4415063d464a09b8bb6205 Block 1244297 Block 1244299
      • Required
        difficulty string

        Defines how difficult it is for a specific miner to mine the block.

        Example : 41.375
      • Required
        dsBlock integer

        Represents the Directory Service block which contains metadata about the miners who participate in the consensus protocol.

        Example : 12443
      • Required
        dsDifficulty string

        Defines how difficult it is to mine the dsBlocks.

        Example : 48.625
      • Required
        dsLeader string

        Represents a part of the DS Committee which leads the consensus protocol for the epoch.

        Example : zil1k9hne0uu86wuj2n7qdqwhrm9uma0xn7ut42tsj
      • Required
        gasLimit integer

        Represents the maximum amount of gas allowed in the block in order to determine how many transactions it can fit.

        Example : 550000
      • Required
        gasUsed integer

        Defines how much of the gas for the block has been used.

        Example : 0
      • Required
        microBlocks array

        Micro blocks are validated simultaneously with other smaller components called "shards" in order to form the final txBlock.

        Example : [0] 5b7c58118c4873f1f83bf0d1f93c58d608f1fb2692efbbe93483d8d03d7d6119 [1] 7504a82d1fcf28b03103b4e23bdf3b5045ac63d8c1b8af4bf533907f3b20ee9c [2] 6ea4f053dc37e0938dc3e729aa2f197dff3c13dcaa9558857a0d90260210950e [3] 31de23ba0a8a57e80a1d3a4a24ab378bd4a814ea0f0354f73ff9a6a46a785297
      • Required
        nextBlockHash string

        Defines the hash of the next block from the specific blockchain.

        Example : 0x07939adbc3f5a6ba75968012acfe0fee9a351dca72c814e499fee554281b56b6 Block 1244298 Block 1244300
      • Required
        previousBlockHash string

        Represents the hash of the previous block, also known as the parent block.

        Example : 0xe347b6c09e54a582478f6ccc9f85a386616ad1367e9965e5409fab790e538d16 Block 1244296 Block 1244298
      • Required
        timestamp integer

        Defines the exact date/time when this block was mined in Unix Timestamp.

        Example : 1616069434
      • Required
        transactionsCount integer

        Represents the total number of all transactions as part of this block.

        Example : 1

Credits Cost : 500 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/blockchain-data/zilliqa-specific/mainnet/blocks/height/1244298?context=yourExampleString
Headers
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2021-03-20",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "blockHash": "0xf679d0b5387f0b0b3c3c1f368305512b23860888ba4415063d464a09b8bb6205 Block 1244297 Block 1244299",
            "difficulty": "41.375",
            "dsBlock": 12443,
            "dsDifficulty": "48.625",
            "dsLeader": "zil1k9hne0uu86wuj2n7qdqwhrm9uma0xn7ut42tsj",
            "gasLimit": 550000,
            "gasUsed": 0,
            "microBlocks": [
                "[0] 5b7c58118c4873f1f83bf0d1f93c58d608f1fb2692efbbe93483d8d03d7d6119 [1] 7504a82d1fcf28b03103b4e23bdf3b5045ac63d8c1b8af4bf533907f3b20ee9c [2] 6ea4f053dc37e0938dc3e729aa2f197dff3c13dcaa9558857a0d90260210950e [3] 31de23ba0a8a57e80a1d3a4a24ab378bd4a814ea0f0354f73ff9a6a46a785297"
            ],
            "nextBlockHash": "0x07939adbc3f5a6ba75968012acfe0fee9a351dca72c814e499fee554281b56b6 Block 1244298 Block 1244300",
            "previousBlockHash": "0xe347b6c09e54a582478f6ccc9f85a386616ad1367e9965e5409fab790e538d16 Block 1244296 Block 1244298",
            "timestamp": 1616069434,
            "transactionsCount": 1
        }
    }
}