eth_getBlockByHash

Fetches the block object associated with the provided hash.

Parameters

  1. DATA, 32 Bytes - Block Hash.
  2. Boolean - Returns full transaction details if true, or only hashes if false.

Example

Request

curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{
	"jsonrpc": "2.0",
	"method": "eth_getBlockByHash",
	"params": ["0x0000000000f9cc56243898cbe88685678855e07f51c5af91322c225ce3693868", false],
	"id": 1
}'

Response

{"jsonrpc":"2.0","id":1,"result":null}