eth_getBlockTransactionCountByNumber
Name
Type
Description
await provider.request({
method: "eth_getBlockTransactionCountByNumber",
params: ["0x5bad55"],
});
// "0x50"Last updated
Was this helpful?
Returns the number of transactions included in a block by number.
Parameters
BlockNumber
HexString<Number>| "latest" | "earliest" | "pending"
Hexadecimal block number, or the string "latest", "earliest" or "pending".
Return Type
HexString<Number> | null - Number of transactions included in the block or null if not found.
Example
await provider.request({
method: "eth_getBlockTransactionCountByNumber",
params: ["0x5bad55"],
});
// "0x50"Last updated
Was this helpful?
Was this helpful?