GET /trade/v1/{chainId}/swap/single

Generate transaction data for single-chain trade via Unizen DEX Aggregator

Generate transaction data for single-chain trade via Unizen DEX Aggregator

post
Authorizations
HTTPRequired

[just text field] Please enter token in following format: Bearer

Path parameters
chainIdnumber · enumRequired

The chain ID of the chain where the swap will be conducted

Example: 56Possible values:
Body
transactionDatastringRequired

The transactionData object obtained from the /quote API, parsed as a string.

Example: {}
nativeValuestringRequired

The native currency value for this transaction, obtained from the /quote API response.

Example: 0
accountstringRequired

The user's address that conducts the trade.

Example: 0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1
receiverstringOptional

The wallet address that will receive the funds.

Example: 0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1
tradeTypenumber · enumRequired

tradeType obtained from the /quote API response

Example: 0Possible values:
Responses
200

Generate transaction data for single-chain trade

application/json
post
/v1/{chainId}/swap/single
200

Generate transaction data for single-chain trade

Last updated

Was this helpful?