eth_getBlockReceipts

BaseC2

Returns the receipts of every transaction in a block, avoiding one eth_getTransactionReceipt call per transaction. Ideal for indexing logs and status efficiently.

Endpoint
POST https://api.1st-node.com/v1/base/rpc

Parameters

NameTypeDescription
blockQUANTITY | TAGBlock number or tag.

Returns

Array — one receipt object per transaction in the block.

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_getBlockReceipts",
  "params": ["latest"]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getBlockReceipts",
  "params": ["latest"]
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [{ "transactionHash": "0x…", "status": "0x1", "logs": [] }]
}
More blocks methods on Base

Base API

常见问题

Why use this over per-tx receipts?

One call per block instead of N — far cheaper and faster for indexers.

充值、拿密钥、上线。

自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。

获取 API 密钥