/wallet/exchangecreate REST API Endpoint
Please note that the successful execution, signing, and broadcast of this API call will deduct 1024 TRX from the user's account.
身体パラメータ
所有者の住所
文字列
必須
読み込み中...
first_token_id
文字列
必須
読み込み中...
first_token_balance
整数
必須
読み込み中...
second_token_id
整数
必須
読み込み中...
second_token_balance
整数
必須
読み込み中...
表示されている
ブール値
読み込み中...
permission_id
整数
読み込み中...
返します
結果
読み込み中...
メッセージ
読み込み中...
txID
読み込み中...
リクエスト
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"first_token_id": "FIRST_TOKEN_ID",8"first_token_balance": 100,9"second_token_id": "SECOND_TOKEN_ID",10"second_token_balance": 100,11"visible": true12}13'141516
1curl https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '5{6"owner_address": "OWNER_ADDRESS",7"first_token_id": "FIRST_TOKEN_ID",8"first_token_balance": 100,9"second_token_id": "SECOND_TOKEN_ID",10"second_token_balance": 100,11"visible": true12}13'141516
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate';23const データ = {4owner_address: 'OWNER_ADDRESS',5first_token_id: 'FIRST_TOKEN_ID',6first_token_balance: 100,7second_token_id: 'SECOND_TOKEN_ID',8second_token_balance: 100,9表示: true10};1112フェッチ(url, {13メソッド: 'POST',14headers: {15「accept」: 'application/json',16「content-type」: 'application/json'17},18本文: JSON.stringify(data)19})20.その後(レスポンス => レスポンス.json())21.その後(データ => コンソール.log(data))22.catch(エラー => console.エラー(エラー));23
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate';23const データ = {4owner_address: 'OWNER_ADDRESS',5first_token_id: 'FIRST_TOKEN_ID',6first_token_balance: 100,7second_token_id: 'SECOND_TOKEN_ID',8second_token_balance: 100,9表示: true10};1112フェッチ(url, {13メソッド: 'POST',14headers: {15「accept」: 'application/json',16「content-type」: 'application/json'17},18本文: JSON.stringify(data)19})20.その後(レスポンス => レスポンス.json())21.その後(データ => コンソール.log(data))22.catch(エラー => console.エラー(エラー));23
1import リクエスト23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate"45データ = {6'owner_address': 'OWNER_ADDRESS',7'first_token_id': 'FIRST_TOKEN_ID',8'first_token_balance': 100,9'second_token_id': 'SECOND_TOKEN_ID',10'second_token_balance': 100,11「visible」: True12}1314ヘッダー = {15「accept」: 'application/json',16「content-type」: 'application/json'17}1819回答 = リクエスト.POST(url, json=data, ヘッダー=ヘッダー)20印刷(レスポンス.json())21
1import リクエスト23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate"45データ = {6'owner_address': 'OWNER_ADDRESS',7'first_token_id': 'FIRST_TOKEN_ID',8'first_token_balance': 100,9'second_token_id': 'SECOND_TOKEN_ID',10'second_token_balance': 100,11「visible」: True12}1314ヘッダー = {15「accept」: 'application/json',16「content-type」: 'application/json'17}1819回答 = リクエスト.POST(url, json=data, ヘッダー=ヘッダー)20印刷(レスポンス.json())21
1require "uri"2require "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate")67データ = {8'owner_address' => 'OWNER_ADDRESS',9'first_token_id' => 'FIRST_TOKEN_ID',10'first_token_balance' => 100,11'second_token_id' => 'SECOND_TOKEN_ID',12'second_token_balance' => 100,13'visible' => true14}1516ヘッダー = {17「accept」 => 'application/json',18「content-type」 => 'application/json'19}2021http = ネット::HTTP.new(url.ホスト, url.ポート)22http.use_ssl = true2324リクエスト = ネット::HTTP::POST.new(URL.path, ヘッダー)25リクエスト.本文 = data.to_json2627回答 = http.リクエスト(リクエスト)28レスポンスを格納する。body2930
1require "uri"2require "net/http"3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate")67データ = {8'owner_address' => 'OWNER_ADDRESS',9'first_token_id' => 'FIRST_TOKEN_ID',10'first_token_balance' => 100,11'second_token_id' => 'SECOND_TOKEN_ID',12'second_token_balance' => 100,13'visible' => true14}1516ヘッダー = {17「accept」 => 'application/json',18「content-type」 => 'application/json'19}2021http = ネット::HTTP.new(url.ホスト, url.ポート)22http.use_ssl = true2324リクエスト = ネット::HTTP::POST.new(URL.path, ヘッダー)25リクエスト.本文 = data.to_json2627回答 = http.リクエスト(リクエスト)28レスポンスを格納する。body2930