GET /trade/v1/{chainId}/quote/cross 1

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

List of chain id and decimals for UTXO and Cosmos

  • BTC: chainId: -3980891822, decimals 8

  • BCH: chainId: -174457306, decimals 8

  • LTC: chainId: -33463083, decimals 8

  • DOGE: chainId: -3143381382, decimals 8

  • GAIA (Cosmos) : chainId: -978111860, decimals 6

Parameters

This is the list of important params for UTXO and Cosmos trade

Name
Description

fromTokenAddress*

The address of the token being traded. If native, use address zero: 0x0000000000000000000000000000000000000000.

For UTXO or Cosmos assets, use Address Zero

Example: 0x0000000000000000000000000000000000000000

toTokenAddress*

Zero address, as we only support trade from native UTXO or Cosmos to Ethereum on the Ethereum mainnet, Avax on the Avax, and BNB on Binance Smart Chain network. Example: 0x0000000000000000000000000000000000000000

amount*

Amount of tokens being traded. Example: 1 BTC → 100000000, 1 ETH → 1000000000000000000

destinationChainId*

The chain ID of the destination network Available values: 1, 56, 43114, -3980891822, -174457306, -33463083, -3143381382, -978111860

sender*

The address of the sender. If trading from UTXO or Cosmos to EVM, the sender is your UTXO or Cosmos address. If trading from EVM to UTXO or Cosmos, the sender is your EVM address.

receiver*

The address of the receiver. If trading from UTXO or Cosmos to EVM, the receiver is your EVM address. If trading from EVM to UTXO or Cosmos, the receiver is your UTXO or Cosmos address. Example: - BTC: bc1qf7cd6pvs9sqnkr0nadsuhgecy8prnc9t8k0jny - BCH: qpg6w46s2l25d2mehycfay8hrntwz4l4ty8cuju0np - DOGE: DGcwfQ8tb6BXK4nv2wE28Vs9Aw56LaEV28 - LTC: ltc1q08tx4wsj2vmdttz7tys0275a7wrenlqpqcw8zc - Cosmos: cosmos1aac5zxrt2xj39pujq5594w86ywntkal5skju7w

isExactOut

For UTXO assets and Cosmos trade, we don't support exact out trade. isExactOut is false for this trade

chainId*

The chain ID of the chain to quote on. Available values: 1, 56, 43114, -3980891822, -174457306, -33463083, -3143381382, -978111860

Response

200: OK The response is an array of objects. Currently, we only support Thorchain for native UTXO assets and Cosmos trade, so this array will have only one item for Thorchain.

Last updated

Was this helpful?