/wallet/getaccountresource REST API Endpoint
身体参数
地址
整数
必填
正在加载...
visible
布尔型
正在加载...
退货
freeNetUsed
正在加载...
freeNetLimit
正在加载...
netUsed
正在加载...
netLimit
正在加载...
totalNetLimit
正在加载...
totalNetWeight
正在加载...
totalTronPowerWeight
正在加载...
tronPowerLimit
正在加载...
tronPowerUsed
正在加载...
energyUsed
正在加载...
energyLimit
正在加载...
totalEnergyLimit
正在加载...
totalEnergyWeight
正在加载...
assetNetUsed
正在加载...
assetNetLimit
正在加载...
请求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountresource \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"visible": true8}9'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountresource \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"visible": true8}9'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountresource';23const data = {4address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',5visible: true6};78fetch(url, {9方法: 'POST',10headers: {11'accept': 'application/json',12'content-type': 'application/json'13},14body: JSON.stringify(data)15})16.然后(响应 => 响应.json())17.then(data => console.log(data))18.catch(error => console.error(error));19
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountresource';23const data = {4address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',5visible: true6};78fetch(url, {9方法: 'POST',10headers: {11'accept': 'application/json',12'content-type': 'application/json'13},14body: JSON.stringify(data)15})16.然后(响应 => 响应.json())17.then(data => console.log(data))18.catch(error => console.error(error));19
1导入 请求23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountresource"45数据 = {6'address': 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',7'visible': True8}910标题 = {11'accept': 'application/json',12'content-type': 'application/json'13}1415response = requests.post(url, json=data, headers=headers)16print(response.json())17json())18
1导入 请求23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountresource"45数据 = {6'address': 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',7'visible': True8}910标题 = {11'accept': 'application/json',12'content-type': 'application/json'13}1415response = requests.post(url, json=data, headers=headers)16print(response.json())17json())18
1require "uri"2require "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountresource")67数据 = {8'address': 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',9'visible': true10}1112标题 = {13'accept' => 'application/json',14'content-type' => 'application/json'15}1617http = Net::HTTP.new(url.host, url.port)18http.use_ssl = true1920request = Net::HTTP::Post.new(url.path, headers)21请求.请求体 = data.to_json2223回复 = http.请求(请求)24返回响应.正文2526
1require "uri"2require "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/getaccountresource")67数据 = {8'address': 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',9'visible': true10}1112标题 = {13'accept' => 'application/json',14'content-type' => 'application/json'15}1617http = Net::HTTP.new(url.host, url.port)18http.use_ssl = true1920request = Net::HTTP::Post.new(url.path, headers)21请求.请求体 = data.to_json2223回复 = http.请求(请求)24返回响应.正文2526