/wallet/accountpermissionupdate REST API Endpoint
身體參數
owner_address
字串
必填
載入中...
actives
字串
必填
載入中...
所有者
整數
必填
載入中...
witness
整數
必填
載入中...
visible
布林值
載入中...
退貨
visible
載入中...
txid
載入中...
raw_data
載入中...
合約
載入中...
contract_index
載入中...
parameter
載入中...
值
載入中...
所有者
載入中...
鍵
載入中...
地址
載入中...
weight
載入中...
permission_name
載入中...
threshold
載入中...
owner_address
載入中...
active
載入中...
operations
載入中...
類型
載入中...
permission_name
載入中...
threshold
載入中...
鍵
載入中...
地址
載入中...
weight
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
expiration
載入中...
時間戳記
載入中...
raw_data_hex
載入中...
請求
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"actives": [8{9"type": 2,10"permission_name": "active0",11"threshold": 2,12"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",13"keys": [14{15"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"weight": 117},18{19"address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",20"weight": 121}22]23}24],25"owner": {26"type": 0,27"permission_name": "owner",28"threshold": 1,29"keys": [30{31"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",32"weight": 133}34]35},36"visible": true37}38'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"actives": [8{9"type": 2,10"permission_name": "active0",11"threshold": 2,12"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",13"keys": [14{15"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"weight": 117},18{19"address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",20"weight": 121}22]23}24],25"owner": {26"type": 0,27"permission_name": "owner",28"threshold": 1,29"keys": [30{31"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",32"weight": 133}34]35},36"visible": true37}38'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate';23const 標頭 = {4「接受」: 'application/json',5「Content-Type」: 'application/json'6};78const data = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10actives: [11{12type: 2,13permission_name: 'active0',14threshold: 2,15operations: '7fff1fc0037e0000000000000000000000000000000000000000000000000000',16keys: [17{18address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',19weight: 120},21{22address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',23weight: 124}25]26}27],28owner: {29type: 0,30permission_name: 'owner',31threshold: 1,32keys: [33{34address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',35weight: 136}37]38},39visible: true40};4142取得(url, {43方法: 'POST',44標題: 標頭:,45body: JSON.stringify(data)46})47.接著(回應 => response.json())48.接著(結果 => {49控制台.日誌(結果);50})51.catchcatch(錯誤 => {52控制台.錯誤(錯誤);53});54
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate';23const 標頭 = {4「接受」: 'application/json',5「Content-Type」: 'application/json'6};78const data = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10actives: [11{12type: 2,13permission_name: 'active0',14threshold: 2,15operations: '7fff1fc0037e0000000000000000000000000000000000000000000000000000',16keys: [17{18address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',19weight: 120},21{22address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',23weight: 124}25]26}27],28owner: {29type: 0,30permission_name: 'owner',31threshold: 1,32keys: [33{34address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',35weight: 136}37]38},39visible: true40};4142取得(url, {43方法: 'POST',44標題: 標頭:,45body: JSON.stringify(data)46})47.接著(回應 => response.json())48.接著(結果 => {49控制台.日誌(結果);50})51.catchcatch(錯誤 => {52控制台.錯誤(錯誤);53});54
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate'56標題 = {7「接受」: 'application/json',8'content-type': 'application/json'9}1011資料 = {12"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",13"actives": [14{15"type": 2,16"permission_name": "active0",17"threshold": 2,18"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",19"keys": [20{21"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",22"weight": 123},24{25"address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",26"weight": 127}28]29}30],31"owner": {32"type": 0,33"permission_name": "owner",34"threshold": 1,35"keys": [36{37"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",38"weight": 139}40]41},42"visible": True43}4445response = requests.post(url, json=data, headers=headers)4647if response.status_code == 200:48print(response.json())49else:50print("Request failed with status code:", response.status_code)51
1匯入 請求2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate'56標題 = {7「接受」: 'application/json',8'content-type': 'application/json'9}1011資料 = {12"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",13"actives": [14{15"type": 2,16"permission_name": "active0",17"threshold": 2,18"operations": "7fff1fc0037e0000000000000000000000000000000000000000000000000000",19"keys": [20{21"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",22"weight": 123},24{25"address": "TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1",26"weight": 127}28]29}30],31"owner": {32"type": 0,33"permission_name": "owner",34"threshold": 1,35"keys": [36{37"address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",38"weight": 139}40]41},42"visible": True43}4445response = requests.post(url, json=data, headers=headers)4647if response.status_code == 200:48print(response.json())49else:50print("Request failed with status code:", response.status_code)51
1需要 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate')56http = Net::HTTP.new(url.host, url.port)7http.use_ssl = true89標題 = {10'Accept' => 'application/json',11'Content-Type' => 'application/json'12}1314資料 = {15owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',16actives: [17{18type: 2,19permission_name: 'active0',20threshold: 2,21operations: '7fff1fc0037e0000000000000000000000000000000000000000000000000000',22keys: [23{24address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',25weight: 126},27{28address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',29weight: 130}31]32}33],34owner: {35type: 0,36permission_name: 'owner',37threshold: 1,38keys: [39{40address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',41weight: 142}43]44},45visible: true46}4748請求 = 淨::HTTP::POST.new(網址)49請求。正文 = data.to_json50headers.each { |key, value| request[key] = value }5152回應 = http.請求(請求)5354if response.code.to_i == 20055result = JSON.parse(response.body)56puts result57else58puts "Request failed with status code: #{response.code}"59結束60
1需要 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate')56http = Net::HTTP.new(url.host, url.port)7http.use_ssl = true89標題 = {10'Accept' => 'application/json',11'Content-Type' => 'application/json'12}1314資料 = {15owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',16actives: [17{18type: 2,19permission_name: 'active0',20threshold: 2,21operations: '7fff1fc0037e0000000000000000000000000000000000000000000000000000',22keys: [23{24address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',25weight: 126},27{28address: 'TPswDDCAWhJAZGdHPidFg5nEf8TkNToDX1',29weight: 130}31]32}33],34owner: {35type: 0,36permission_name: 'owner',37threshold: 1,38keys: [39{40address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',41weight: 142}43]44},45visible: true46}4748請求 = 淨::HTTP::POST.new(網址)49請求。正文 = data.to_json50headers.each { |key, value| request[key] = value }5152回應 = http.請求(請求)5354if response.code.to_i == 20055result = JSON.parse(response.body)56puts result57else58puts "Request failed with status code: #{response.code}"59結束60