Links

ExchangeCreate

Creates a trading pair.
Return: Transaction object
Warning!
Successful execution, signing, and broadcast of this API call will deduct 1024 TRX from the user's account.
Body params:
  • owner_address
  • first_token_id - The first token's id, default hexString
  • first_token_balance - The first token's balance
  • second_token_id - The second token's id, default hexString
  • second_token_balance - The second token's balance
  • permission_id - Optional,for multi-signature use
  • visible - Optional,whether the address is in base58 format
Request
curl --request POST \
--url https://tron.api.watchdata.io/wallet/exchangecreate \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '
{
"owner_address": "4100776428620856AE1D71562812B734E356B68551",
"first_token_id": "31303030343837",
"first_token_balance": 100,
"second_token_id": "31303030303031",
"second_token_balance": 100,
"permission_id": 0,
"visible": true
}
'
Response
{
"Error": "class java.lang.IllegalArgumentException : Illegal character 0 at 2"
}