Mantle
eth_getBlockByNumber (full)17 额度
按区块号返回区块信息。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| blockNumber | QUANTITY | TAG | 区块号或标签。 |
| fullTransactions | boolean | 为 true 时返回完整的交易对象,否则返回哈希。 |
返回值
类型
Object | null
区块对象或 null。
代码示例
curl https://holy-burned-sky-mantle-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getBlockByNumber",
"params": [
"latest",
false
]
}'