eth_getBlockByNumber
ArbitrumC1Returns block information by number. The second parameter controls whether transactions are returned as full objects (true) or just hashes (false).
Endpoint
POST https://api.1st-node.com/v1/arbitrum/rpcParameters
| Name | Type | Description |
|---|---|---|
| block | QUANTITY | TAG | Block number or tag. |
| fullTx | Boolean | true for full transaction objects, false for hashes. |
Returns
Object — the block header, transactions and metadata, or null if not found.
Request
curl https://api.1st-node.com/v1/arbitrum/rpc \
-H "Authorization: Bearer $ONE_KEY" \
-H "content-type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getBlockByNumber",
"params": ["latest", false]
}'{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getBlockByNumber",
"params": ["latest", false]
}Response
{
"jsonrpc": "2.0",
"id": 1,
"result": { "number": "0x12d4e2a", "hash": "0x…", "transactions": ["0x…"] }
}More blocks methods on Arbitrum
よくある質問
Can I fetch old blocks?
Yes — any historic block is available from archive nodes.
チャージして、キーを取得し、リリース。
セルフサーブ。暗号資産またはカードで支払い。クレジットで従量課金——重いプリミティブは高く、単純なものは安価。
APIキーを取得