kaia_call RPC Method
Parameters
transaction
object
REQUIRED
Loading...
from
string
Loading...
to
string
REQUIRED
Loading...
gas
integer
Loading...
gasPrice
integer
Loading...
value
integer
Loading...
data
string
Loading...
blockNumber/tag
string
REQUIRED
Loading...
Returns
data
string
Loading...
Request
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"jsonrpc": "2.0",6"id": 1,7"method": "kaia_call",8"params": [9{10"to": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",11"data": "0x919840ad"12},13"latest"14]15}'
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{5"jsonrpc": "2.0",6"id": 1,7"method": "kaia_call",8"params": [9{10"to": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",11"data": "0x919840ad"12},13"latest"14]15}'
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "kaia_call",6"params": [7{8"to": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",9"data": "0x919840ad"10},11"latest"12],13"id": 1,14"jsonrpc": "2.0"15});1617var requestOptions = {18method: 'POST',19headers: myHeaders,20body: raw,21redirect: 'follow'22};2324fetch("https://docs-demo.kaia-kairos.quiknode.pro/", requestOptions)25.then(response => response.text())26.then(result => console.log(result))27.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "kaia_call",6"params": [7{8"to": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",9"data": "0x919840ad"10},11"latest"12],13"id": 1,14"jsonrpc": "2.0"15});1617var requestOptions = {18method: 'POST',19headers: myHeaders,20body: raw,21redirect: 'follow'22};2324fetch("https://docs-demo.kaia-kairos.quiknode.pro/", requestOptions)25.then(response => response.text())26.then(result => console.log(result))27.catch(error => console.log('error', error));
1import requests2import json34url = "https://docs-demo.kaia-kairos.quiknode.pro/"56payload = json.dumps({7"method": "kaia_call",8"params": [9{10"to": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",11"data": "0x919840ad"12},13"latest"14],15"id": 1,16"jsonrpc": "2.0"17})18headers = {19'Content-Type': 'application/json'20}2122response = requests.request("POST", url, headers=headers, data=payload)2324print(response.text)25
1import requests2import json34url = "https://docs-demo.kaia-kairos.quiknode.pro/"56payload = json.dumps({7"method": "kaia_call",8"params": [9{10"to": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",11"data": "0x919840ad"12},13"latest"14],15"id": 1,16"jsonrpc": "2.0"17})18headers = {19'Content-Type': 'application/json'20}2122response = requests.request("POST", url, headers=headers, data=payload)2324print(response.text)25
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_call",14"params": [15{16"to": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",17"data": "0x919840ad"18},19"latest"20],21"id": 1,22"jsonrpc": "2.0"23})2425response = https.request(request)26puts response.read_body27
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_call",14"params": [15{16"to": "0x0fd43c8fabe26d70dfa4c8b6fa680db39f147460",17"data": "0x919840ad"18},19"latest"20],21"id": 1,22"jsonrpc": "2.0"23})2425response = https.request(request)26puts response.read_body27
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free