eth_getBlockTransactionCountByNumber
Returns the number of transactions in a block matching the given block number.
Parameters
params: [
'latest',
]Returns
Example
curl https://rpc-mainnet.u2u.xyz \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBlockTransactionCountByNumber","params":["latest"],"id":0}'{
"jsonrpc": "2.0",
"id": 0,
"result": "0xee"
}Last updated