/wallet/accountpermissionupdate REST API Endpoint
신체 측정값
소유자 주소
문자열
필수
로딩 중...
actives
문자열
필수
로딩 중...
owner
정수
필수
로딩 중...
witness
정수
필수
로딩 중...
보이는
부울
로딩 중...
반품
보이는
로딩 중...
txid
로딩 중...
원시 데이터
로딩 중...
계약
로딩 중...
contract_index
로딩 중...
매개변수
로딩 중...
값
로딩 중...
owner
로딩 중...
keys
로딩 중...
주소
로딩 중...
무게
로딩 중...
permission_name
로딩 중...
임계값
로딩 중...
소유자 주소
로딩 중...
active
로딩 중...
operations
로딩 중...
유형
로딩 중...
permission_name
로딩 중...
임계값
로딩 중...
keys
로딩 중...
주소
로딩 중...
무게
로딩 중...
type_url
로딩 중...
유형
로딩 중...
ref_block_bytes
로딩 중...
ref_block_hash
로딩 중...
만료
로딩 중...
타임스탬프
로딩 중...
raw_data_hex
로딩 중...
요청
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate \2--header 'accept: application/json' \3--헤더 'content-type: application/json' \4--데이터 '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--헤더 'content-type: application/json' \4--데이터 '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},39표시됨: true40};4142가져오기fetch (url, {43메서드: 'POST',44헤더: 헤더,45본문: JSON.stringify(data)46})47.그런 다음(응답 => 응답.json())48.그런 다음(결과 => {49콘솔.log(결과);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},39표시됨: true40};4142가져오기fetch (url, {43메서드: 'POST',44헤더: 헤더,45본문: JSON.stringify(data)46})47.그런 다음(응답 => 응답.json())48.그런 다음(결과 => {49콘솔.log(결과);50})51.catchcatch (오류 => {52콘솔.오류(오류);53});54
1import 요청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"보이는": True43}4445답변 = 요청.post(url, json=data, 헤더=헤더)4647만약 응답.status_code == 200:48인쇄(응답.json())49else:50인쇄("상태 코드:로 인해 요청이 실패했습니다:", 응답.status_code)51
1import 요청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"보이는": True43}4445답변 = 요청.post(url, json=data, 헤더=헤더)4647만약 응답.status_code == 200:48인쇄(응답.json())49else:50인쇄("상태 코드:로 인해 요청이 실패했습니다:", 응답.status_code)51
1require 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate')56http = Net::HTTP.new(url.호스트, url.포트)7http.use_ssl = true89헤더 = {10'수락' => '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},45표시됨: true46}4748요청 = 순::HTTP::POST.새(URL)49요청.본문 = data.to_json50헤더.각 { |key, 값| 요청[키] = 값 }5152답변 = http.요청(요청)5354만약 응답.코드.to_i == 20055결과 = JSON.parse(response.body)56결과를 출력합니다57else58puts "Request failed with status code: #{response.code}"59끝60
1require 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/accountpermissionupdate')56http = Net::HTTP.new(url.호스트, url.포트)7http.use_ssl = true89헤더 = {10'수락' => '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},45표시됨: true46}4748요청 = 순::HTTP::POST.새(URL)49요청.본문 = data.to_json50헤더.각 { |key, 값| 요청[키] = 값 }5152답변 = http.요청(요청)5354만약 응답.코드.to_i == 20055결과 = JSON.parse(response.body)56결과를 출력합니다57else58puts "Request failed with status code: #{response.code}"59끝60