eth_getUncleByBlockHashAndIndex

按区块哈希和索引查询叔块;TRON 不产生叔块,因此返回 null。

TRON 使用委托权益证明(DPoS)共识,不产生以太坊工作量证明链中的叔块(uncle block)。该兼容方法始终返回 null

参数

  1. DATA,32 Bytes——区块哈希。
  2. QUANTITY——叔块在区块中的索引。

示例

curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{
  "jsonrpc":"2.0","method":"eth_getUncleByBlockHashAndIndex",
  "params":["0x0000000000000000000000000000000000000000000000000000000000000000","0x0"],"id":1
}'
{"jsonrpc":"2.0","id":1,"result":null}