文档
定价GitHub控制台

Hyperliquid

eth_getBlockByHash (full)17 额度

按哈希返回区块信息。

网络: hyperliquid变体: full

参数

名称类型描述
blockHashDATA32 字节的区块哈希。
fullTransactionsboolean为 true 时返回完整的交易对象,否则返回哈希。

返回值

类型

Object | null

区块对象或 null。

代码示例

curl https://holy-burned-sky-hyperliquid-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
  -X POST \
  -H 'content-type: application/json' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getBlockByHash",
  "params": [
    "0x0000000000000000000000000000000000000000000000000000000000000000",
    false
  ]
}'