Parameters
QUANTITY|TAG- Block number (integer) or a string tag (earliest,latest).Boolean- Iftrue, returns full transaction objects; iffalse, returns only the transaction hashes.
Returns
Object- A block object, ornullif the specified block cannot be found. See eth_getBlockByHash
Example
Request
curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": ["0xF9CC56", true],
"id": 1
}'Response
{"jsonrpc":"2.0","id":1,"result":null}