Parameters
address
string
REQUIRED
The address of the account being queried
BlockNumberOrHashOrTag
string
REQUIRED
The block number in integer, block hash or block tag(earliest and latest)
Returns
result
string
Returns the number of transactions send from this address
Request
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "kaia_getTransactionCount",6"id": 1,7"jsonrpc": "2.0",8"params": [9"0x5b70c66bc2758f12cb8ab2c19e0f3bfb9a407d5d",10"latest"11]12}'
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"method": "kaia_getTransactionCount",6"id": 1,7"jsonrpc": "2.0",8"params": [9"0x5b70c66bc2758f12cb8ab2c19e0f3bfb9a407d5d",10"latest"11]12}'
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "kaia_getTransactionCount",6"id": 1,7"jsonrpc": "2.0",8"params": [9"0x5b70c66bc2758f12cb8ab2c19e0f3bfb9a407d5d",10"latest"11]12});1314var requestOptions = {15method: 'POST',16headers: myHeaders,17body: raw,18redirect: 'follow'19};2021fetch("https://docs-demo.kaia-kairos.quiknode.pro/", requestOptions)22.then(response => response.text())23.then(result => console.log(result))24.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "kaia_getTransactionCount",6"id": 1,7"jsonrpc": "2.0",8"params": [9"0x5b70c66bc2758f12cb8ab2c19e0f3bfb9a407d5d",10"latest"11]12});1314var requestOptions = {15method: 'POST',16headers: myHeaders,17body: raw,18redirect: 'follow'19};2021fetch("https://docs-demo.kaia-kairos.quiknode.pro/", requestOptions)22.then(response => response.text())23.then(result => console.log(result))24.catch(error => console.log('error', error));
1import requests2import json34url = "https://docs-demo.kaia-kairos.quiknode.pro/"56payload = json.dumps({7"method": "kaia_getTransactionCount",8"id": 1,9"jsonrpc": "2.0",10"params": [11"0x5b70c66bc2758f12cb8ab2c19e0f3bfb9a407d5d",12"latest"13]14})15headers = {16'Content-Type': 'application/json'17}1819response = requests.request("POST", url, headers=headers, data=payload)2021print(response.text)22
1import requests2import json34url = "https://docs-demo.kaia-kairos.quiknode.pro/"56payload = json.dumps({7"method": "kaia_getTransactionCount",8"id": 1,9"jsonrpc": "2.0",10"params": [11"0x5b70c66bc2758f12cb8ab2c19e0f3bfb9a407d5d",12"latest"13]14})15headers = {16'Content-Type': 'application/json'17}1819response = requests.request("POST", url, headers=headers, data=payload)2021print(response.text)22
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.kaia-kairos.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"method": "kaia_getTransactionCount",14"id": 1,15"jsonrpc": "2.0",16"params": [17"0x5b70c66bc2758f12cb8ab2c19e0f3bfb9a407d5d",18"latest"19]20})2122response = https.request(request)23puts response.read_body24
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.kaia-kairos.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"method": "kaia_getTransactionCount",14"id": 1,15"jsonrpc": "2.0",16"params": [17"0x5b70c66bc2758f12cb8ab2c19e0f3bfb9a407d5d",18"latest"19]20})2122response = https.request(request)23puts response.read_body24
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free