GET /trade/v1/{chainId}/quote/cross 1
Parameters
This is the list of important params for BTC trade
Name | Description |
---|---|
fromTokenAddress* | Zero address, as we only support trade from native Bitcoin to Ethereum on the Ethereum mainnet or Avax on the Avax network. Example: 0x0000000000000000000000000000000000000000 |
toTokenAddress* | Zero address, as we only support trade from native Bitcoin to Ethereum on the Ethereum mainnet or Avax on the Avax 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, 43114, -3980891822 |
sender* | The address of the sender. If trading from BTC to EVM, the sender is your BTC address. If trading from EVM to BTC, the sender is your EVM address. Example: 0x54c47034887C582Fc1Af4a9a3b68180a8a9eF2d2 |
receiver* | The address of the receiver. If trading from BTC to EVM, the receiver is your EVM address. If trading from EVM to BTC, the receiver is your BTC address. Example: bc1qf7cd6pvs9sqnkr0nadsuhgecy8prnc9t8k0jny |
isExactOut | For BTC 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, 43114, -3980891822 |
Response
200: OK The response is an array of objects. Currently, we only support Thorchain for native BTC trade, so this array will have only one item for Thorchain.
Last updated