GetBlockTransactionCountByNumber
post
Returns the number of transactions in a block matching the given block number.
Parameters
QUANTITY|TAG
- integer of a block number, or the string"earliest"
,"latest"
or"pending"
, as in the default block parameter.
params: [ '0x85', // 232 ]
Returns
QUANTITY
- integer of the number of transactions in this block.
Body
jsonrpcstringRequired
methodstringRequired
paramsstring[]Required
idinteger · int32Required
Responses
200
Successful Operation
500
Internal Server Error
post
POST //getBlockTransactionCountByNumber HTTP/1.1
Host: tomo.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 94
{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"params": [
"0x52A8CA"
],
"id": 1
}
No content