eth_getBlockByNumber
BaseC1Returns 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/base/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/base/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 Base
Sıkça sorulanlar
Can I fetch old blocks?
Yes — any historic block is available from archive nodes.
Bakiye yükle, anahtarını al, yayına çık.
Self servis. Kripto ya da kartla öde. Krediyle ölçümlenir — ağır ilkel yapılar daha pahalı, basitler ucuz.
API anahtarı al