Get swap execution status
Retrieves the status of a swap transaction and returns the L1 transaction ID of the receiving transaction (toL1TxId) if the swap has been finalized. For BTC, LTC, and DOGE transactions, you can optionally provide the receiverAddress and toType to check for unconfirmed finalization transactions that may not yet be confirmed on the blockchain. The toL1TxId is returned when the swap has been successfully finalized.
Query Parameters
The L1 transaction ID that initiated the swap. Should be passed withput "0x" prefix.
The C1 contract address for the source token.
The C2 contract address for the destination token.
Backend URL. Default is https://api-cloud.coinweb.io/wallet. This URL is used to query the contract's claim storage to retrieve all orders.
uriThe receiver address on the destination L1 chain. Required only for BTC, LTC, and DOGE transactions. This address is used to check for incoming finalization transactions that may be unconfirmed on the blockchain. Allows tracking swap completion even when the finalization transaction is still pending confirmation.
The type of the destination blockchain. Required only for BTC, LTC, and DOGE transactions to determine which blockchain to query for the finalization transaction. Use "btc" for Bitcoin, "ltc" for Litecoin, or "doge" for Dogecoin. This parameter is used in conjunction with receiverAddress to check for unconfirmed transactions on the appropriate blockchain.
"btc" | "ltc" | "doge"Response Body
curl -X GET "https://cwap-api.coinhq.store/pactswap_cm/getSwapStatus?fromL1TxId=a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d&fromC1ContractId=0x6f20d1802288c90d2a044d3f7afae73fda261b27d85c0e01fdaaf3199b2c0e85&toC2ContractId=0x6f20d1802288c90d2a044d3f7afae73fda261b27d85c0e01fdaaf3199b2c0e85&backendUrl=https%3A%2F%2Fapi-cloud.coinweb.io%2Fwallet&receiverAddress=string&toType=btc"{
"toL1TxId": "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
}Was this documentation helpful? Any suggestions?