/wallet/createaccount RPC Method
身體參數
owner_address
字串
必填
載入中...
account_address
字串
必填
載入中...
visible
布林值
載入中...
permission_id
整數
載入中...
退貨
visible
載入中...
txID
載入中...
raw_data
載入中...
合約
載入中...
parameter
載入中...
值
載入中...
owner_address
載入中...
account_address
載入中...
type_url
載入中...
類型
載入中...
ref_block_bytes
載入中...
ref_block_hash
載入中...
expiration
載入中...
時間戳記
載入中...
raw_data_hex
載入中...
請求
1curl --location 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount' \2--標頭 'Content-Type: application/json' \3--data '{4"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",5"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",6"visible": true7}'
1curl --location 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount' \2--標頭 'Content-Type: application/json' \3--data '{4"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",5"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",6"visible": true7}'
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",6"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",7"visible": true8});910var requestOptions = {11方法: 'POST',12標題: myHeaders,13正文: 原始,14redirect: 'follow'15};1617fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount", requestOptions)18.then(response => response.text())19.then(result => console.log(result))20.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",6"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",7"visible": true8});910var requestOptions = {11方法: 'POST',12標題: myHeaders,13正文: 原始,14redirect: 'follow'15};1617fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount", requestOptions)18.then(response => response.text())19.then(result => console.log(result))20.catch(error => console.log('error', error));
1匯入 請求2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount"56有效載荷 = json.dumps({7"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",8"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",9"visible": True10})11標題 = {12「Content-Type」: 'application/json'13}1415回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1617列印(回應.text)
1匯入 請求2import json34url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount"56有效載荷 = json.dumps({7"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",8"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",9"visible": True10})11標題 = {12「Content-Type」: 'application/json'13}1415回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1617列印(回應.text)
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",14"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",15"visible": true16})1718回應 = https.請求(請求)19將回應。read_body
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["Content-Type"] = "application/json"12請求。正文 = JSON.dump({13"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",14"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",15"visible": true16})1718回應 = https.請求(請求)19將回應。read_body