/walletsolidity/estimateenergy REST API Endpoint
Körperparameter
owner_address
Zeichenkette
ERFORDERLICH
Wird geladen...
contract_address
Zeichenkette
ERFORDERLICH
Wird geladen...
function_selector
Ganzzahl
ERFORDERLICH
Wird geladen...
Parameter
Zeichenkette
ERFORDERLICH
Wird geladen...
sichtbar
boolesch
Wird geladen...
Rücksendungen
Ergebnis
Wird geladen...
Ergebnis
Wird geladen...
Code
Wird geladen...
Nachricht
Wird geladen...
energy_required
Wird geladen...
Anfrage
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/estimateenergy \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",8"function_selector": "balanceOf(address)",9"parameter": "000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c",10"visible": true11}12'
1curl https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/estimateenergy \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--Daten '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",8"function_selector": "balanceOf(address)",9"parameter": "000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c",10"visible": true11}12'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/estimateenergy';2const Kopfzeilen = {3„akzeptieren“: 'application/json',4'content-type': 'application/json'5};6const Daten = {7"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",8"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",9"function_selector": "balanceOf(address)",10"parameter": "000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c",11"visible": true12};1314abrufen(url, {15Methode: 'POST',16Überschriften: Kopfzeilen,17Körper: JSON.stringify(data)18})19.dann(Antwort => Antwort.json())20.then(responseData => {21console.log(responseData);22})23.catch(Fehler => {24console.error('Error:', error);25});
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/estimateenergy';2const Kopfzeilen = {3„akzeptieren“: 'application/json',4'content-type': 'application/json'5};6const Daten = {7"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",8"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",9"function_selector": "balanceOf(address)",10"parameter": "000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c",11"visible": true12};1314abrufen(url, {15Methode: 'POST',16Überschriften: Kopfzeilen,17Körper: JSON.stringify(data)18})19.dann(Antwort => Antwort.json())20.then(responseData => {21console.log(responseData);22})23.catch(Fehler => {24console.error('Error:', error);25});
1import Anfragen2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbyid'5Überschriften = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9Daten = {10"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",11"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",12"function_selector": "balanceOf(address)",13"parameter": "000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c",14„sichtbar“: Wahr15}161718Antwort = Anfragen.POST(URL, Header=headers, Daten=json.dumps(Daten))19wenn Antwort.status_code == 200:20result = response.json()21# Handle the response data22print(result)23sonst:24# Handle any errors25print('Request failed with status code', response.status_code)26print(response.text)27
1import Anfragen2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/getblockbyid'5Überschriften = {6'Accept': 'application/json',7'Content-Type': 'application/json'8}9Daten = {10"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",11"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",12"function_selector": "balanceOf(address)",13"parameter": "000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c",14„sichtbar“: Wahr15}161718Antwort = Anfragen.POST(URL, Header=headers, Daten=json.dumps(Daten))19wenn Antwort.status_code == 200:20result = response.json()21# Handle the response data22print(result)23sonst:24# Handle any errors25print('Request failed with status code', response.status_code)26print(response.text)27
1require 'net/http'2require 'json'3benötigen 'uri'45endpoint = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/estimateenergy'6Überschriften = {7„akzeptieren“ => 'application/json',8'content-type' => 'application/json'9}10Daten = {11"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",12"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",13"function_selector": "balanceOf(address)",14"parameter": "000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c",15"visible": true16}1718http = Net::HTTP.new(api_url.host, api_url.port)19request = Net::HTTP::Post.new(api_url.path, headers)20Anfrage.Inhalt = Daten.to_json2122Antwort = http.Anfrage(Anfrage)23response_data = JSON.parse(response.body)24puts response_data25
1require 'net/http'2require 'json'3benötigen 'uri'45endpoint = 'https://docs-demo.tron-mainnet.quiknode.pro/walletsolidity/estimateenergy'6Überschriften = {7„akzeptieren“ => 'application/json',8'content-type' => 'application/json'9}10Daten = {11"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",12"contract_address": "TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs",13"function_selector": "balanceOf(address)",14"parameter": "000000000000000000000000a614f803b6fd780986a42c78ec9c7f77e6ded13c",15"visible": true16}1718http = Net::HTTP.new(api_url.host, api_url.port)19request = Net::HTTP::Post.new(api_url.path, headers)20Anfrage.Inhalt = Daten.to_json2122Antwort = http.Anfrage(Anfrage)23response_data = JSON.parse(response.body)24puts response_data25
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen