Swap
Submit the swap request. Please note that the txRef is generated before submitting the swap: it is obtained after transferring the assets required for the quote request to the asset-receiving address
Last updated
Submit the swap request. Please note that the txRef is generated before submitting the swap: it is obtained after transferring the assets required for the quote request to the asset-receiving address
Last updated
Source code
Submits a swap request between two assets.
The HIN of the agent that initiated the swap operation.
The public key of the wallet that initiated the swap operation.
The address of the wallet that initiated the swap operation.
A unique identifier for the fund transfer tx. For example, the hash of the transaction on the source blockchain.
The blockchain where the source asset currently resides
The type of the source asset (Native, SPL, ERC20, KRC20 etc.). Determines how the asset is identified and processed.
The identifier for the source asset - either a contract address for tokens or a ticker symbol. Should be null when SourceAssetType is Native (e.g., BTC, ETH, KAS).
The amount of source asset to be exchanged/transferred, expressed in the smallest unit of the asset (e.g., satoshi for Bitcoin, wei for Ethereum).
The destination blockchain for the exchange operation. When null, the system will use the same chain as the source (intra-chain operation).
The destination wallet address where the target assets will be sent. When null, the system will use the source wallet address as the destination.
The type of the target asset to receive. When null, the system will use the same asset type as the source.
The identifier for the target asset - either a contract address for tokens or a ticker symbol. Should be null when TargetAssetType is Native (e.g., BTC, ETH, KAS).
The amount of target asset to be received, expressed in the smallest unit
The minimum amount of target asset to be received, expressed in the smallest unit
Represents the schema of a wallet signature.
The signature of the swap operation.
result of open api
OK