/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.
Körperparameter
Eigentümeradresse
Zeichenkette
ERFORDERLICH
Wird geladen...
first_token_id
Zeichenkette
ERFORDERLICH
Wird geladen...
first_token_balance
Ganzzahl
ERFORDERLICH
Wird geladen...
second_token_id
Ganzzahl
ERFORDERLICH
Wird geladen...
Saldo des zweiten Tokens
Ganzzahl
ERFORDERLICH
Wird geladen...
sichtbar
boolesch
Wird geladen...
permission_id
Ganzzahl
Wird geladen...
Rücksendungen
Ergebnis
Wird geladen...
Nachricht
Wird geladen...
txID
Wird geladen...
Anfrage
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 data = {4owner_address: 'OWNER_ADDRESS',5first_token_id: 'FIRST_TOKEN_ID',6first_token_balance: 100,7second_token_id: 'SECOND_TOKEN_ID',8second_token_balance: 100,9visible: true10};1112abrufen(url, {13Methode: 'POST',14headers: {15„akzeptieren“: 'application/json',16'content-type': 'application/json'17},18body: JSON.stringify(data)19})20.dann(Antwort => Antwort.json())21.dann(Daten => Konsole.log(Daten))22.catch(Fehler => Konsole.Fehler(Fehler));23
1const url = 'https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate';23const data = {4owner_address: 'OWNER_ADDRESS',5first_token_id: 'FIRST_TOKEN_ID',6first_token_balance: 100,7second_token_id: 'SECOND_TOKEN_ID',8second_token_balance: 100,9visible: true10};1112abrufen(url, {13Methode: 'POST',14headers: {15„akzeptieren“: 'application/json',16'content-type': 'application/json'17},18body: JSON.stringify(data)19})20.dann(Antwort => Antwort.json())21.dann(Daten => Konsole.log(Daten))22.catch(Fehler => Konsole.Fehler(Fehler));23
1import Anfragen23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate"45data = {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}1314Kopfzeilen = {15„akzeptieren“: 'application/json',16'content-type': 'application/json'17}1819response = requests.post(url, json=data, headers=headers)20Drucken(Antwort.json())21
1import Anfragen23url = "https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate"45data = {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}1314Kopfzeilen = {15„akzeptieren“: 'application/json',16'content-type': 'application/json'17}1819response = requests.post(url, json=data, headers=headers)20Drucken(Antwort.json())21
1require „uri“2require „net/http“3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate")67data = {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}1516Kopfzeilen = {17„akzeptieren“ => 'application/json',18'content-type' => 'application/json'19}2021http = Net::HTTP.new(url.host, URL.Port)22http.use_ssl = true2324request = Net::HTTP::Post.new(url.path, headers)25request.body = data.to_json2627Antwort = http.Anfrage(Anfrage)28gibt die Antwort aus.Hauptteil2930
1require „uri“2require „net/http“3require 'json'45url = URI("https://docs-demo.tron-mainnet.quiknode.pro/wallet/exchangecreate")67data = {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}1516Kopfzeilen = {17„akzeptieren“ => 'application/json',18'content-type' => 'application/json'19}2021http = Net::HTTP.new(url.host, URL.Port)22http.use_ssl = true2324request = Net::HTTP::Post.new(url.path, headers)25request.body = data.to_json2627Antwort = http.Anfrage(Anfrage)28gibt die Antwort aus.Hauptteil2930
Hast du noch kein Konto?
Erstellen Sie Ihrenendpoint Sekundenschnelle und legen Sie los
Kostenlos loslegen