getblock

Returns the block information of the specific blockchain hash.

Parameters

blockhash (string) the hash of the block

verbosity (int) verbosity can be 0, 1, 2

Example

///request
curl -u user:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getblock","params": {"blockhash":"7207a816ff6b068f3495aef2370a92c9eceea436d05400d0d366b8a4d7e8ac04", "verbosity":0}}' http://<your-app-id>.ankr.com
//response (verbosity=0)
{
"error":null,
"id":1,
"jsonrpc":"2.0",
"result":"000000008d7014f2f941caa1972c8033b2f0a860ec8d4938b12bae2c62512852a558f405ad359ee45b0509f59bc514fa133602dd5819ea0f9f56f716993633537d2b509305e33c5aff08001f000000000100000001000000010000000000000000000000000000000000000000000000000000000000000000000000002cfabe6d6d04ace8d7a4b866d3d00054d036a4eeecc9920a37f2ae95348f066bff16a807720100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff7f00000000000000000000000000000000000000000000000000000000000000009bb451b182cf0e417d94154b2cb96d8516220f6c9dee559148818bc235e6055005e33c5a00000000083004000101000000000403454c410100082e67f44191eb819f010000000000000000000000000000000000000000000000000000000000000000ffffffffffff02b037db964a231458d2d6ffd5ea18944c4f90e63d547c5d3b9874df66a4ead0a30345fb080000000000000000129e9cf1c5f336fcf3a6c954444ed482c5d916e506b037db964a231458d2d6ffd5ea18944c4f90e63d547c5d3b9874df66a4ead0a35ef6f4140000000000000000129e9cf1c5f336fcf3a6c954444ed482c5d916e5060100000000"
}