Pact Swap

Get swap status


Get swap status.

GET
/pactswap_cm/getSwapStatus

Query Parameters

fromL1TxIdstring

From L1 tx id.

fromC1ContractIdstring

From C1 contract id.

toC2ContractIdstring

To C2 contract id.

backendUrl?string

Backend URL, default: https://api-cloud.coinweb.io/wallet

Formaturi
receiverAddress?string

Receiver address. Provided only for BTC or LTC transactions. You can provide address to check incoming finalization unconfirmed transaction.

toType?string

To type. Provided only for BTC or LTC transactions to determine the type of the transaction. For BTC transactions use "btc", for LTC transactions use "ltc".

Value in"btc" | "ltc"

Response Body

curl -X GET "https://api.pactswap.io/pactswap_cm/getSwapStatus?fromL1TxId=string&fromC1ContractId=string&toC2ContractId=string&backendUrl=http%3A%2F%2Fexample.com&receiverAddress=string&toType=btc"
{
  "toL1TxId": "string"
}

Was this documentation helpful? Any suggestions?

Last updated on