Reference
Cancel orders

Cancel orders

To cancel an order, you need to sign the keccak256 hash of the EIP712 encoding of the Order struct. We use the permit2 domain separator for simplicity and convenience.

For convenience, the FloodPlain (opens in a new tab) contract exposes a getOrderHash method that takes an Order struct as parameter and returns the order hash.

After the order is signed, the order and its cancel signature can be submitted to the Flood API.

curl -X POST "https://arbitrum.flood.bid/orders/cancel" \
-H "Content-Type: application/json" \
-d '{
"signature": "YOUR_SIGNATURE",
"order": {
    "offerer": "0x...",
    "zone": "0xf100d0988D6c9A02236A83d2E12e231226c814Ee",
    "offer": [
        {
            "token": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
            "amount": "10000000"
        }
    ],
    "consideration": [
        {
            "token": "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8",
            "amount": "0"
        }
    ],
    "deadline": "340282366920938463463374607431768211455",
    "nonce": "0"
}
}'