参数
blockstring必填- Block number in hex (e.g. "0x1208a5f") or a tag: "latest", "safe", "finalized", "earliest" or "pending". L0vd endpoints run archive nodes, so any historical block works.
返回值
string Transaction count, hex.
适用场景
Count the transactions in a block without downloading them, e.g. to size a backfill or chart activity.
如何解读结果
Hex integer: 0xae = 174 transactions in block 18,908,895.
提示
- Cheaper than eth_getBlockByNumber when only the count matters.