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
| Name | Type | Description |
|---|---|---|
| id | integer | Request identifier |
| jsonrpc | string | JSON-RPC version |
| method | string | API method name |
| Parameters | array of strings | |
| address | string | The address for which to retrieve the transaction count. |
| blockNumber | string | (optional) Block number as an integer, or string |
Response
200
The number of transactions sent from the specified address, returned as a hexadecimal string.| Name | Type | Description |
|---|---|---|
| Parameters | object | |
| id | integer | |
| jsonrpc | string | |
| result | array_of_objects |