UTXO Assets and Cosmos Swap

This document provides an overview of the Unizen API for UTXO Assets and Cosmos trade via the Unizen DEX aggregator and Thorchain.

For UTXO Assets and Cosmos trade, currently we only support trading:

  • All currencies on Ethereum, Avax, Binance Smart Chain networks -> UTXO Assets and Cosmos

  • UTXO Assets and Cosmos -> Native Currency on Ethereum, Avax, Binance Smart Chain

  • UTXO Assets and Cosmos -> UTXO Assets and Cosmos

Available Endpoints

The Unizen API for cross-chain transactions also includes UTXO Assets and Cosmos trade, but it differs from EVM cross-chain trade.

GET /trade/v1/{chainId}/quote/cross: Fetches the UTXO Assets and Cosmos trade data.

GET /trade/v1/{chainId}/swap/cross: Generates transaction data for UTXO Assets and Cosmos trade via Thorchain.

Using the Unizen API for native UTXO assets and Cosmos trade

  1. Call GET /trade/v1/{chainId}/quote/cross to retrieve all available quotes for a cross-chain trade via the Unizen DEX aggregator.

  2. Call GET /trade/v1/{chainId}/swap/cross to generate transaction data for a cross-chain trade via the Unizen DEX aggregator.

  3. Send the transaction with the user fund to the Unizen DEX aggregator contract.

You can test it here: https://github.com/unizen-io/unizen-dex-aggregator-example. This example project also includes all steps for the integration.

Last updated