/wallet/updateaccount REST API Endpoint
身体パラメータ
owner_address
文字列
必須
読み込み中...
account_name
文字列
必須
読み込み中...
permission_id
整数
読み込み中...
表示されている
ブール値
読み込み中...
返品
表示されている
読み込み中...
txid
読み込み中...
raw_data
読み込み中...
契約
読み込み中...
parameter
読み込み中...
値
読み込み中...
金額
読み込み中...
owner_address
読み込み中...
to_address
読み込み中...
type_url
読み込み中...
タイプ
読み込み中...
ref_block_bytes
読み込み中...
ref_block_hash
読み込み中...
expiration
読み込み中...
タイムスタンプ
読み込み中...
raw_data_hex
読み込み中...
リクエスト
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"account_name": "0x7570646174654e616d6531353330383933343635353139",8"visible": true9}10'
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",7"account_name": "0x7570646174654e616d6531353330383933343635353139",8"visible": true9}10'
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount';23const ヘッダー = {4「承諾」: 'application/json',5「Content-Type」: 'application/json'6};78const data = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10account_name: '0x7570646174654e616d6531353330383933343635353139',11visible: true12};1314fetch(url, {15メソッド: 'POST',16ヘッダー: ヘッダー:,17body: JSON.stringify(data)18})19.その後(レスポンス => レスポンス.json())20.その後(結果 => {21コンソール.log(結果);22})23.catchcatch(エラー => {24コンソール.エラー(エラー);25});
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount';23const ヘッダー = {4「承諾」: 'application/json',5「Content-Type」: 'application/json'6};78const data = {9owner_address: 'TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g',10account_name: '0x7570646174654e616d6531353330383933343635353139',11visible: true12};1314fetch(url, {15メソッド: 'POST',16ヘッダー: ヘッダー:,17body: JSON.stringify(data)18})19.その後(レスポンス => レスポンス.json())20.その後(結果 => {21コンソール.log(結果);22})23.catchcatch(エラー => {24コンソール.エラー(エラー);25});
1import リクエスト2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount'56ヘッダー = {7「accept」: 'application/json',8「content-type」: 'application/json'9}1011データ = {12"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",13"account_name": "0x7570646174654e616d6531353330383933343635353139",14"visible": True15}1617response = requests.post(url, json=data, headers=headers)1819if response.status_code == 200:20print(response.json())21else:22print("Request failed with status code:", response.status_code)23
1import リクエスト2import json34url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount'56ヘッダー = {7「accept」: 'application/json',8「content-type」: 'application/json'9}1011データ = {12"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",13"account_name": "0x7570646174654e616d6531353330383933343635353139",14"visible": True15}1617response = requests.post(url, json=data, headers=headers)1819if response.status_code == 200:20print(response.json())21else:22print("Request failed with status code:", response.status_code)23
1require 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount')56http = ネット::HTTP.new(url.ホスト, url.ポート)7http.use_ssl = true89ヘッダー = {10'accept' => 'application/json',11'content-type' => 'application/json'12}1314データ = {15"owner_address" => "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"account_name" => "0x7570646174654e616d6531353330383933343635353139",17"visible" => true18}1920request = Net::HTTP::Post.new(url.path, headers)21リクエスト.本文 = data.to_json2223回答 = http.リクエスト(リクエスト)2425if response.code.to_i == 20026result = JSON.parse(response.body)27puts result28else29puts "Request failed with status code: #{response.code}"30終わり31
1require 'net/http'2require 'json'34uri = URI('https://docs-demo.tron-mainnet.quiknode.pro/wallet/updateaccount')56http = ネット::HTTP.new(url.ホスト, url.ポート)7http.use_ssl = true89ヘッダー = {10'accept' => 'application/json',11'content-type' => 'application/json'12}1314データ = {15"owner_address" => "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",16"account_name" => "0x7570646174654e616d6531353330383933343635353139",17"visible" => true18}1920request = Net::HTTP::Post.new(url.path, headers)21リクエスト.本文 = data.to_json2223回答 = http.リクエスト(リクエスト)2425if response.code.to_i == 20026result = JSON.parse(response.body)27puts result28else29puts "Request failed with status code: #{response.code}"30終わり31