Cancel a listed NFT
This guide is a continuation of the Listing example.
As a maker, you can always cancel a listing (or any other order) - the Acilia NFT Swap API makes this trivial.
Any order created from the Acilia NFT Swap API can be filled or cancelled without the need to the same API. The orders generated by this API are simple 0x orders and can be cancelled by interacting with the smart contracts directly or with Trader SDK libraries.
Step 1: Request cancellation call-data
Pass in the AciliaID from the previous Listing request
Below is the sample response coming from the API 👇 - which will contain the following
order
contains the deserialized ordercancelOrderTransaction
is an Ethereum transaction that can be used to cancel that order. The order must be send by the maker, of course.
You are always encouraged to review call-data before before you submit it on-chain.
Step 2: Cancel the order on-chain
Step 3: Ensure the transaction succeeds
Ensure the transaction is correctly mined - and check the transaction logs to ensure the cancellation is successful.
Last updated