ONE
POST
GET
Last updated on January 1, 1970
1 min read
Method hmyv2_getTransactionCount undefined ()
connect with JSON-RPC protocol
hmyv2_getTransactionCount
Returns the number of transactions sent from a specified address. Usethe pending tag to get the next account nonce not used by any pendingtransactions.
Parameters
data
- hex string
20-byte account address.
quantity|tag
- hex string
Integer representing a block number or one of the string tags latest, earliest, or pending, as described in Block Parameter.
Request
curl --location --request POST 'https://one.getblock.io/mainnet/'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "hmyv2_getTransactionCount",
"params": ["one1qku72aj98fskvge07h9j0gtfu9sdw62ucgff67", "0x286AC07"],
"id": "getblock.io"}'
Response
{
"error": {
"code": -32000,
"message": "missing trie node d415596d6e84fb80bcce0cb183592969547169aac226fc8e58c4de28d38d9d5c (path )"
},
"id": "getblock.io",
"jsonrpc": "2.0"
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }