/wallet/getenergyprices REST API Endpoint
参数
该方法不接受任何参数
退货
prices
正在加载...
请求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getenergyprices \2--request GET \3--header 'accept: application/json'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getenergyprices \2--request GET \3--header 'accept: application/json'
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getenergyprices', {2method: 'GET',3headers: {4'accept': 'application/json'5}6})7.然后(响应 => 响应.json())8.then(data => console.log(data))9.catch(error => console.error(error));10
1fetch('https://docs-demo.tron-mainnet.quiknode.pro/wallet/getenergyprices', {2method: 'GET',3headers: {4'accept': 'application/json'5}6})7.然后(响应 => 响应.json())8.then(data => console.log(data))9.catch(error => console.error(error));10
1导入 请求23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/getenergyprices"45标题 = {6"accept": "application/json"7}89response = requests.get(url, headers=headers)1011print(response.json()) # assuming the response is in JSON format12
1导入 请求23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/getenergyprices"45标题 = {6"accept": "application/json"7}89response = requests.get(url, headers=headers)1011print(response.json()) # assuming the response is in JSON format12
1require 'net/http'2require 'uri'34uri = URI.parse("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getenergyprices")5request = Net::HTTP::Get.new(uri)6请求[“接受”] = "application/json"78response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|9http.请求(请求)10结束1112返回响应.正文13
1require 'net/http'2require 'uri'34uri = URI.parse("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getenergyprices")5request = Net::HTTP::Get.new(uri)6请求[“接受”] = "application/json"78response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|9http.请求(请求)10结束1112返回响应.正文13