/wallet/delegateresource REST API Endpoint
Body Parameters
owner_address
string
REQUIRED
Loading...
receiver_address
string
REQUIRED
Loading...
balance
integer
REQUIRED
Loading...
resource
string
REQUIRED
Loading...
lock
boolean
REQUIRED
Loading...
permission_id
integer
Loading...
visible
boolean
Loading...
Returns
visible
Loading...
txid
Loading...
raw_data
Loading...
contract
Loading...
parameter
Loading...
value
Loading...
resource
Loading...
owner_address
Loading...
receiver_address
Loading...
balance
Loading...
lock
Loading...
type_url
Loading...
type
Loading...
ref_block_bytes
Loading...
ref_block_hash
Loading...
expiration
Loading...
timestamp
Loading...
raw_data_hex
Loading...
Request
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/delegateresource \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"receiver_address": "RECEIVER_ADDRESS",8"balance": 1000000,9"resource": "BANDWIDTH",10"lock": false,11"visible": true12}13'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/delegateresource \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"receiver_address": "RECEIVER_ADDRESS",8"balance": 1000000,9"resource": "BANDWIDTH",10"lock": false,11"visible": true12}13'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/delegateresource';2const headers = {3'Accept': 'application/json',4'Content-Type': 'application/json'5};67const data = {8owner_address: 'OWNER_ADDRESS',9receiver_address: 'RECEIVER_ADDRESS',10balance: 1000000,11resource: 'BANDWIDTH',12lock: false,13visible: true14};1516fetch(url, {17method: 'POST',18headers: headers,19body: JSON.stringify(data)20})21.then(response => response.json())22.then(result => {23console.log(result);24})25.catch(error => {26console.error(error);27});28
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/delegateresource';2const headers = {3'Accept': 'application/json',4'Content-Type': 'application/json'5};67const data = {8owner_address: 'OWNER_ADDRESS',9receiver_address: 'RECEIVER_ADDRESS',10balance: 1000000,11resource: 'BANDWIDTH',12lock: false,13visible: true14};1516fetch(url, {17method: 'POST',18headers: headers,19body: JSON.stringify(data)20})21.then(response => response.json())22.then(result => {23console.log(result);24})25.catch(error => {26console.error(error);27});28
1import requests23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/delegateresource'45headers = {6'accept': 'application/json',7'content-type': 'application/json'8}910data = {11"owner_address": "OWNER_ADDRESS",12"receiver_address": "RECEIVER_ADDRESS",13"balance": 1000000,14"resource": "BANDWIDTH",15"lock": False,16"visible": True17}1819response = requests.post(url, json=data, headers=headers)2021if response.status_code == 200:22print(response.json())23else:24print("Request failed with status code:", response.status_code)25
1import requests23url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/delegateresource'45headers = {6'accept': 'application/json',7'content-type': 'application/json'8}910data = {11"owner_address": "OWNER_ADDRESS",12"receiver_address": "RECEIVER_ADDRESS",13"balance": 1000000,14"resource": "BANDWIDTH",15"lock": False,16"visible": True17}1819response = requests.post(url, json=data, headers=headers)2021if response.status_code == 200:22print(response.json())23else:24print("Request failed with status code:", response.status_code)25
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/delegateresource')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910headers = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415data = {16owner_address: 'OWNER_ADDRESS',17receiver_address: 'RECEIVER_ADDRESS',18balance: 1000000,19resource: 'BANDWIDTH',20lock: false,21visible: true22}2324request = Net::HTTP::Post.new(url)25request.body = data.to_json26headers.each { |key, value| request[key] = value }2728response = http.request(request)2930if response.code.to_i == 20031result = JSON.parse(response.body)32puts result33else34puts "Request failed with status code: #{response.code}"35end36
1require 'net/http'2require 'json'3require 'uri'45url = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/delegateresource')67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910headers = {11'Accept' => 'application/json',12'Content-Type' => 'application/json'13}1415data = {16owner_address: 'OWNER_ADDRESS',17receiver_address: 'RECEIVER_ADDRESS',18balance: 1000000,19resource: 'BANDWIDTH',20lock: false,21visible: true22}2324request = Net::HTTP::Post.new(url)25request.body = data.to_json26headers.each { |key, value| request[key] = value }2728response = http.request(request)2930if response.code.to_i == 20031result = JSON.parse(response.body)32puts result33else34puts "Request failed with status code: #{response.code}"35end36
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free