Get PACT of a swap
Retrieves complete information about an execution request (PACT) identified by an L1 transaction ID. A PACT is an inquiry to the market makers to send destination L1 to the user.
Query Parameters
l1TxIdstring
The L1 transaction ID that was used to create or identify the execution request (PACT). Should be passed without "0x" prefix.
c1ContractIdstring
The C1 contract address for the source token.
c2ContractIdstring
The C2 contract address for the destination token.
backendUrl?string
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.
Format
uriResponse Body
curl -X GET "https://cwap-api.coinhq.store/pactswap_cm/getPactInfo?l1TxId=a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d&c1ContractId=0x6f20d1802288c90d2a044d3f7afae73fda261b27d85c0e01fdaaf3199b2c0e85&c2ContractId=0x6f20d1802288c90d2a044d3f7afae73fda261b27d85c0e01fdaaf3199b2c0e85&backendUrl=https%3A%2F%2Fapi-cloud.coinweb.io%2Fwallet"{
"pactInfo": {
"id": "order-123-abc",
"baseAmount": "1000000000000000000",
"promisedL1Amount": "50000000",
"pactL1Amount": "50000000",
"minL1Amount": "40000000",
"collateral": "1000000000000000000",
"createdAt": 1704067200000,
"executionStatus": "ACTIVE",
"expirationDate": 1704153600000,
"l1Recipient": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh",
"requestedOrderId": "order-123-abc",
"txId": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"chainData": {
"l1TxId": "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d",
"vout": 0
},
"history": {
"l1TxId": "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d",
"vout": 0
},
"requestInfo": {
"l1TxId": "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d",
"vout": 0
},
"executionInfo": {
"l1TxId": "a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d",
"l1Amount": "50000000"
}
}
}Was this documentation helpful? Any suggestions?