Skip to main content
POST
/
eth_getTransactionCount
eth_getTransactionCount
curl --request POST \
  --url https://api.mainnet.abs.xyz/eth_getTransactionCount \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionCount",
  "params": [
    "0x8fe5810cd78eb8d8b9abad8527dfc1265bee6c56",
    "latest"
  ],
  "id": 1
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x2f5d6a8af654c249bc487e7c7b926a3f3f165b575a6485a487f12c7a9e3c8e45"
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:eth_getTransactionCount
required

The method to call

params
any[]
required

Address and block parameter

id
integer
default:1
required

Request identifier

Response

200 - application/json

Returns the transaction hash

jsonrpc
string
Example:

"2.0"

id
integer
Example:

1

result
string

The transaction hash

Example:

"0x2f5d6a8af654c249bc487e7c7b926a3f3f165b575a6485a487f12c7a9e3c8e45"