/wallet/createaccount RPC Method
身体参数
owner_address
字符串
必填
正在加载...
account_address
字符串
必填
正在加载...
visible
布尔型
正在加载...
permission_id
整数
正在加载...
退货
visible
正在加载...
txID
正在加载...
原始数据
正在加载...
合同
正在加载...
参数
正在加载...
值
正在加载...
owner_address
正在加载...
account_address
正在加载...
type_url
正在加载...
类型
正在加载...
ref_block_bytes
正在加载...
ref_block_hash
正在加载...
到期
正在加载...
时间戳
正在加载...
raw_data_hex
正在加载...
请求
1curl --location 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount' \2--header '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--header '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正文: raw,14重定向: 'follow'15};1617fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount", requestOptions)18.然后(响应 => 响应.text())19.然后(结果 => 控制台.log(result))20.catch(error => 控制台.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正文: raw,14重定向: 'follow'15};1617fetch("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount", requestOptions)18.然后(响应 => 响应.text())19.然后(结果 => 控制台.log(result))20.catch(error => 控制台.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)
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",14"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",15"visible": true16})1718回复 = https.请求(请求)19返回响应.read_body
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/createaccount")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",14"account_address": "TFgY1uN8buRxAtV2r6Zy5sG3ACko6pJT1y",15"visible": true16})1718回复 = https.请求(请求)19返回响应.read_body