---
updatedAt: 2025-03-17T22:13:59.000Z
agentTools:
  projectIndex: https://docs.infstones.com/llms.txt
---

# eth_getTransactionCount

# Parameters

| Object Name       | Required | Type          | Detail                                                                                                                                                                                                                                                           |
| :---------------- | :------- | :------------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ADDRESS`         | ✅        | String        | Address to check for transaction count.                                                                                                                                                                                                                          |
| `BLOCK PARAMETER` | ✅        | String/Object | A hex code of an integer that represents the block number,  "latest", "earliest" , "pending" , or  hash of a block. The hash of a block is an object specified as: `{"blockHash": "\<hash_value>"}`. Learn more [here](https://eips.ethereum.org/EIPS/eip-1898). |

```
"params":[
        "0xc94770007dda54cF92009BFF0dE90c06F603a09f",
        "latest"
]
```

# Result

A hex code of an integer that represents the number of transactions sent from this address.

# Example

**Request**

```curl
curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0xc94770007dda54cF92009BFF0dE90c06F603a09f","latest"],"id":0}'
```

**Return**

```
{
    "jsonrpc":"2.0",
    "id":0,
    "result":"0x219"
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "zetachain-ethereum-rpc",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://api.infstones.com/zetachain/mainnet/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/{project_id}/eth": {
      "post": {
        "summary": "eth_getProof",
        "description": "",
        "operationId": "zetachain-ethereum-rpc-api-eth-getproof",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "schema": {
              "type": "string",
              "default": "67593279da2741a99404948f643d2d80"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RAW_BODY": {
                    "type": "string",
                    "default": "{\"jsonrpc\":\"2.0\",\"method\":\"eth_getProof\",\"params\":[\"0x5ecddc1ac099074ae965d140a7c62bd71b7fc80a\",[\"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421\"],\"latest\"],\"id\":1}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```