HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

ExchangeTransaction

Participate in the transaction of exchange pair.

Returns

Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type is ExchangeTransactionContract, the fields contained in raw_data.contract[0].parameter.value in the transaction are as follows:

FieldTypeDescription
owner_addressstringTransaction initiator address. (Format: Base58 or Hex)
exchange_idint64ID of the DEX trading pair.
token_idstringID of the token to sell.
quantint64Amount of tokens to sell from a DEX trading pair.


Language
Click Try It! to start a request and see the response here!