Get Latest Mined Zilliqa Block

Through this endpoint users can obtain information on the latest block that has been mined on the Zilliqa blockchain. Data could include the current and previous block hashes, transaction count, and more.

GET /blockchain-data/zilliqa-specific/{network}/blocks/last

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", "rinkeby" are test networks.

    Example : mainnet
    Possible Values : mainnet

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.

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 : 2.0
  • 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 : You can add any text here
  • 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
        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
      • 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 : 10028
      • Required
        microBlocks array
      • 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
Try it out

Request Example

GET
https://rest.cryptoapis.io/v2/blockchain-data/zilliqa-specific/mainnet/blocks/last
Headers
Host: https://rest.cryptoapis.io/v2
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2.0",
    "requestId": "601c1710034ed6d407996b30",
    "context": "You can add any text here",
    "data": {
        "item": {
            "blockHash": "0xf679d0b5387f0b0b3c3c1f368305512b23860888ba4415063d464a09b8bb6205 Block 1244297 Block 1244299",
            "blockHeight": 1244298,
            "difficulty": "41.375",
            "dsBlock": 12443,
            "dsDifficulty": "48.625",
            "dsLeader": "zil1k9hne0uu86wuj2n7qdqwhrm9uma0xn7ut42tsj",
            "gasLimit": 550000,
            "gasUsed": 10028,
            "microBlocks": [
                "[0] 5b7c58118c4873f1f83bf0d1f93c58d608f1fb2692efbbe93483d8d03d7d6119 [1] 7504a82d1fcf28b03103b4e23bdf3b5045ac63d8c1b8af4bf533907f3b20ee9c [2] 6ea4f053dc37e0938dc3e729aa2f197dff3c13dcaa9558857a0d90260210950e [3] 31de23ba0a8a57e80a1d3a4a24ab378bd4a814ea0f0354f73ff9a6a46a785297"
            ],
            "previousBlockHash": "0xe347b6c09e54a582478f6ccc9f85a386616ad1367e9965e5409fab790e538d16 Block 1244296 Block 1244298",
            "timestamp": 1616069434,
            "transactionsCount": 1
        }
    }
}