eth_call RPC Method
Parameters
transaction
object
Loading...
from
string
Loading...
to
string
REQUIRED
Loading...
gas
integer
Loading...
gasPrice
integer
Loading...
value
integer
Loading...
data
string
Loading...
blockNumber/tag
string
Loading...
NOTE:
The TRON blockchain only supports the usage of the tag latest for this method
Returns
data
Loading...
Request
1curl https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_call","params":[{"to":"0x41a614f803b6fd780986a42c78ec9c7f77e6ded13c","data":"0x70a082310000000000000000000000415a67fa7cc56bd6d043a98e17d329c1dc9e14753f"}, "latest"],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_call","params":[{"to":"0x41a614f803b6fd780986a42c78ec9c7f77e6ded13c","data":"0x70a082310000000000000000000000415a67fa7cc56bd6d043a98e17d329c1dc9e14753f"}, "latest"],"id":1,"jsonrpc":"2.0"}'
1require 'eth'23client = Eth::Client.create 'https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc'4payload = {5"jsonrpc": "2.0",6"method": "eth_call",7"params": [{"to":"0x41a614f803b6fd780986a42c78ec9c7f77e6ded13c","data":"0x70a082310000000000000000000000415a67fa7cc56bd6d043a98e17d329c1dc9e14753f"}, "latest"],8"id": "1"9}1011response = client.send(payload.to_json)12puts response
1require 'eth'23client = Eth::Client.create 'https://docs-demo.tron-mainnet.quiknode.pro/jsonrpc'4payload = {5"jsonrpc": "2.0",6"method": "eth_call",7"params": [{"to":"0x41a614f803b6fd780986a42c78ec9c7f77e6ded13c","data":"0x70a082310000000000000000000000415a67fa7cc56bd6d043a98e17d329c1dc9e14753f"}, "latest"],8"id": "1"9}1011response = client.send(payload.to_json)12puts response
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "eth_call",6"params": [7{8"to": "0x41a614f803b6fd780986a42c78ec9c7f77e6ded13c",9"data": "0x70a082310000000000000000000000415a67fa7cc56bd6d043a98e17d329c1dc9e14753f"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.tron-mainnet.quiknode.pro/jsonrpc", 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": "eth_call",6"params": [7{8"to": "0x41a614f803b6fd780986a42c78ec9c7f77e6ded13c",9"data": "0x70a082310000000000000000000000415a67fa7cc56bd6d043a98e17d329c1dc9e14753f"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.tron-mainnet.quiknode.pro/jsonrpc", 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.tron-mainnet.quiknode.pro/jsonrpc"56payload = json.dumps({7"method": "eth_call",8"params": [9{10"to": "0x41a614f803b6fd780986a42c78ec9c7f77e6ded13c",11"data": "0x70a082310000000000000000000000415a67fa7cc56bd6d043a98e17d329c1dc9e14753f"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.tron-mainnet.quiknode.pro/jsonrpc"56payload = json.dumps({7"method": "eth_call",8"params": [9{10"to": "0x41a614f803b6fd780986a42c78ec9c7f77e6ded13c",11"data": "0x70a082310000000000000000000000415a67fa7cc56bd6d043a98e17d329c1dc9e14753f"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.tron-mainnet.quiknode.pro/jsonrpc")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": "eth_call",14"params": [15{16"to": "0x41a614f803b6fd780986a42c78ec9c7f77e6ded13c",17"data": "0x70a082310000000000000000000000415a67fa7cc56bd6d043a98e17d329c1dc9e14753f"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.tron-mainnet.quiknode.pro/jsonrpc")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": "eth_call",14"params": [15{16"to": "0x41a614f803b6fd780986a42c78ec9c7f77e6ded13c",17"data": "0x70a082310000000000000000000000415a67fa7cc56bd6d043a98e17d329c1dc9e14753f"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