getblock

Returns an Object with information about block ‘hash’.

Parameters

hash (string) - The block hash

Example

// Request
curl -u username:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getblock","params": ["00000000000000000751574c8b9a5a948548806b2eabce7d8ba885c3e5eb0418"]}'' http://<your-app-id>.ankr.com
// Result
{
"jsonrpc": "2.0",
"result": {
"hash": "00000000000000000751574c8b9a5a948548806b2eabce7d8ba885c3e5eb0418",
"confirmations": 482,
"size": 5380,
"height": 449139,
"version": 7,
"merkleroot": "7a8f0714b88ffcc432deca7045121ecb771ca825f6f5918917d842d87144b4c4",
"stakeroot": "bd5dcd74654071d1a76c80eea805a20b2d2a9f3f060ef4f789520001011ae44f",
"tx": [
"2dcac761580a66ffc0b8cfb2721284bf6754adc6bd607013c33b554aa86403ad",
"3bd3176e7ed0ff3031767e4097403f549f019485a41eb394c7693b14db6c9a8d",
"33d9e5f965867a98d5c0bc52b7b0c8af5b2abdf4c217dc9d96623d061a05aabb",
"12ec4540d39df8d08461811a39a36575784c0fafbbf120f6def43828def3d8e0",
"5fdd1449af6773d17c6a0570c722ac64b80608f0bf8f83dac25df46901f774e3"
],
"stx": [
"1c41a28e30396503ba90a73301f837c1b34dd6a6097b2248ef22891b1e1d90ab",
"4de392e3492edf8c7f8b49deecc0dab9a58973c60626607ccee2148720e52519",
"e5fde390cb1ab2790dc1f1f4789e155843ac68d639c1ecc423c5235bd4f14a9b",
"126e36e9f5ffb38780610e54bd3af6bb7bc70b2d2f87d2707d7126f04c64505d",
"5b03e9fbf3c833afbb9e19ebe4efde991848e57e5edefbeb44a4074cb567c005",
"20b1372ad621c0b422558ec106b8f3904214772e752932d490d72a1be6052726",
"22e99ae425d1a7a63ea5d93abd6f5c121bb234674aea46b9734a55c86ba07732"
],
"time": 1589382052,
"nonce": 260191562,
"votebits": 1,
"finalstate": "e23db850b119",
"voters": 5,
"freshstake": 2,
"revocations": 0,
"poolsize": 41295,
"bits": "183324fa",
"sbits": 143.02837843,
"extradata": "0187de0716d50600000000000000000000000000000000000000000000000000",
"stakeversion": 7,
"difficulty": 21497837439.77125,
"chainwork": "0000000000000000000000000000000000000000000ffd6d140a720cc05668dc",
"previousblockhash": "000000000000000012d565fa322b58507996fc7f2c289175f63f42a6982e245c",
"nextblockhash": "0000000000000000106eeabc86f8430236379a787a7a8b6ba8bb3fbab0cca1af"
},
"error": null,
"id": 1
}