Network

Fetch latest block and proof

Retrieves the current Zero-Knowledge Proof (ZKP) state, including the latest block and proof data, from the Nimiq RPC.

GET
/getZkpState
/getZkpState
curl -X GET "https://test.nimiqhub.com/getZkpState"

Latest block and proof data retrieved successfully

{
  "data": {
    "latest-block": {
      "hash": "string",
      "size": 0,
      "batch": 0,
      "epoch": 0,
      "network": "string",
      "version": 0,
      "number": 0,
      "timestamp": 0,
      "parentHash": "string",
      "seed": "string",
      "extraData": "string",
      "stateHash": "string",
      "bodyHash": "string",
      "historyHash": "string",
      "transactions": [
        {
          "hash": "string",
          "blockNumber": 0,
          "timestamp": 0,
          "size": 0,
          "relatedAddresses": [
            "string"
          ],
          "from": "string",
          "fromType": 0,
          "to": "string",
          "toType": 0,
          "value": 0,
          "fee": 0,
          "senderData": "string",
          "recipientData": "string",
          "flags": 0,
          "validityStartHeight": 0,
          "proof": "string",
          "networkId": 0,
          "executionResult": true
        }
      ],
      "type": "string",
      "isElectionBlock": true,
      "parentElectionHash": "string",
      "interlink": [
        "string"
      ],
      "slots": [
        {
          "firstSlotNumber": 0,
          "numSlots": 0,
          "validator": "string",
          "publicKey": "string"
        }
      ],
      "nextBatchInitialPunishedSet": [
        0
      ],
      "justification": {
        "round": 0,
        "sig": {
          "signature": "string",
          "signers": [
            0
          ]
        }
      }
    },
    "latest-proof": "string"
  },
  "metadata": {}
}