Skip to main content
Returns the number of transactions in a block matching the given block number. This method will use 40 Compute Units.
Over HTTPS, Hyperliquid Mainnet keeps roughly 165 days of blocks, receipts and logs; requests for older blocks return JSON-RPC error -32603 with invalid block height. Over WebSocket the request is served by nanoreth, the HyperEVM archive client, and any block back to genesis is available.

Reference: Here

Parameters

QUANTITY|TAG - integer of a block number, or the string "earliest", "latest" or "pending", as in the default block parameter.

Returns

QUANTITY - integer of the number of transactions in this block.