eth_getBlockTransactionCountByNumber

Retrieves the number of transactions in a block specified by its block number

Request
Examples
curl https://rpc.xone.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getBlockTransactionCountByNumber","params":["0xc5043f"],"id":1,"jsonrpc":"2.0"}'
'
Response
200 OK
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xfe"
}

Request params

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
Parametersarray of strings 
blockNumberstringThe block number or tag ("latest", "earliest", "pending") at which to get the balance.

Response

200
The number of transactions in the specified block.
NameTypeDescription
Parametersobject 
idinteger
jsonrpcstring
resultstring