eth_getBlockByHash

根据提供的区块哈希获取对应的区块对象。

根据提供的区块哈希获取对应的区块对象。

参数

  1. DATA, 32 Bytes - 区块哈希。
  2. Boolean - 为 true 时返回完整交易详情,为 false 时仅返回交易哈希列表。

示例

请求

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

响应

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