Pact Swap
SWAPPACTSWAP Market MakerC1 (Bid) Orders APICancel multiple C1 (Bid) orders POST

Cancel multiple C1 (Bid) orders


Creates a UI command (QR code string) for canceling multiple C1 (Bid) orders in a single batch. This is more efficient than canceling orders individually and is useful when a user wants to cancel multiple orders at once. The UI command can be used to compose a Coinweb L2 transaction, by means of @coinweb/wallet-lib library or Coinweb Mobile Wallet (by scanning QR generated from the UI command with a camera). The L2 Transaction then can be signed and broadcasted, with the wallet-library or mobile wallet.

POST
/pactswap_cm/ui-commands/c1/cancelOrders
contractIdstring

The L2 contract address where the orders exist.

orderIdsarray<string>

Array of order IDs to cancel. This allows canceling multiple orders in a single batch operation, which is more efficient than canceling orders individually.

accessId?string

Optional unique identifier for history tracking. Used to track order cancellation in off-chain history systems.

Response Body

curl -X POST "https://cwap-api.coinhq.store/pactswap_cm/ui-commands/c1/cancelOrders" \
  -H "Content-Type: application/json" \
  -d '{
    "contractId": "0x6f20d1802288c90d2a044d3f7afae73fda261b27d85c0e01fdaaf3199b2c0e85",
    "orderIds": [
      "order-1"
    ]
  }'
{
  "rawTx": "string"
}

Was this documentation helpful? Any suggestions?