eth_getTransactionCount

Retrieves the number of transactions sent from a specified address

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

Request params

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
Parametersarray of strings 
addressstringThe address for which to retrieve the transaction count.
blockNumberstring(optional) Block number as an integer, or string

Response

200
The number of transactions sent from the specified address, returned as a hexadecimal string.
NameTypeDescription
Parametersobject 
idinteger
jsonrpcstring
resultarray_of_objects