Purchase a listed NFT
This guide is a continuation of the Listing example.
Once an NFT is listed, it can be purchased by a taker. Acilia's API helps generate the call-data that the taker can use to perform the swap.
Any order created from the Acilia NFT Swap API can be filled or cancelled without the need to the API. The orders generated by this API are 0x orders and can be cancelled by interacting with the smart contracts directly, with Trader SDK libraries, or with any other compatible libraries.
Step 1: Request fill call-data
Pass in the AciliaID from the previous Listing request, alongside the taker that will be used to fill this order.
Below is the sample response coming from the API 👇 - which will contain the following
order
contains the deserialized orderfillOrderTransaction
is an Ethereum transaction that can be used to fill that order. The order must be send by the taker.
You are always encouraged to review call-data before before you submit it on-chain.
Step 2: Fill the order on-chain
Step 3: Ensure the transaction succeeds
Ensure the transaction is correctly mined - and check the transaction logs to ensure the fill of the order is successful.
Last updated