getblock

Returns an Object with information about block ‘hash’.

Parameters

The block hash

Example

// Request
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getblock","params": ["0xd38bd2b29dbd7b9a7f0b7c484553734e10f4f9c39ee75bf0af07bf441f68d2c6", 1]}' http://<your-app-id>.ankr.com
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"hash": "0xd38bd2b29dbd7b9a7f0b7c484553734e10f4f9c39ee75bf0af07bf441f68d2c6",
"size": 686,
"version": 0,
"previousblockhash": "0xc825a4b4c892e8d7511f4f349ecf60483a1ac689653da2cb84bc575cf19eb59a",
"merkleroot": "0x6b0a42e07e2dad4a6f018e80a1dbf481b3ab52721b5cfbeaeff5ad08ef2ccad4",
"time": 1489953732,
"index": 669350,
"nonce": "7784efed24a8574d",
"nextconsensus": "APyEx5f4Zm4oCHwFWiSTaph1fPBxZacYVR",
"script": {
"invocation": "40d86d5c6bacef57b171f5d167fc012afbf0e52b7c709468948e36f43f34dc7e7492f8b43e548672244c52af9854b61f75542e7079f1c79f41ba12c59ae28f388f40507a7d575e6215cb9bf08a3290e04d0c039af575127ff08df35122085fa2f2ff6c930c2a99e7a7594a04d1d62f9e1821ac84120b855d233028724343ff13c28e409e76e1bc5f098457cbeaf88d982aeee009079c1c645025f4b7c7dd6e7370446eea223e389b57a9d835d50f656a6bec54f8c8c8084a7bc7dd89d5b170d471524c403a39d6587b0cc2e99682e3567f71e538850b1bdb957dbd9f77ce2722047d80302a9ae151e987f16ae51118d66f8d63fe1ecd2ad7c8a967f6fee283873014dfa040c9d499747df51376869aca973c9f9000f66af7e7f66daaf8a211e60a97366242a8601767ad9f3ff1ef00798368bae8aac1bdc83f7b7936b508a45132cfcf0be5",
"verification": "552102486fd15702c4490a26703112a5cc1d0923fd697a33406bd5a1c00e0013b09a7021024c7b7fb6c310fccf1ba33b082519d82964ea93868d676662d4a59ad548df0e7d2102aaec38470f6aad0042c6e877cfd8087d2676b0f516fddd362801b9bd3936399e2103b209fd4f53a7170ea4444e0cb0a6bb6a53c2bd016926989cf85f9b0fba17a70c2103b8d9d5771d8f513aa0869b9cc8d50986403b78c6da36890638c3d46a5adce04a2102ca0e27697b9c248f6f16e085fd0061e26f44da85b58ee835c110caa5ec3ba5542102df48f60e8f3e01c48ff40b9b7f1310d7a8b2a193188befe1c2e3df740e89509357ae"
},
"tx": [
{
"txid": "0x6b0a42e07e2dad4a6f018e80a1dbf481b3ab52721b5cfbeaeff5ad08ef2ccad4",
"size": 10,
"type": "MinerTransaction",
"version": 0,
"attributes": [],
"vin": [],
"vout": [],
"sys_fee": "0",
"net_fee": "0",
"scripts": [],
"nonce": 615012173
}
],
"confirmations": 45657,
"nextblockhash": "0xa7d8997339644682e24af9dd18f67913dcaab4cc707b7419e66e949bff6cbd7f"
}
}