7. Match Orders
Last updated
Last updated
Matching orders is to fill the offers or listings with traders' corresponding actions to buy or sell the NFTs for the transactions to be completed.
You need to initialize the SDK in order to use it.
To select the correct order, please refer to Offers.
Parameters needed:
📚SDK REFERENCE
Example:
Purchase the NFT with offerId
= 31
Initialize the client
Purchase NFT
Example result
Information about the status change of the target order will be returned. Please refer to Offers for the status information.
The information returned is all about the target order except for "account_name".
Parameter
Parameter usage and meaning
Required or not
accountName
The account name used to initialize the client
✅
assetType
Specify the asset type used to purchase or sell the NFT
✅
AssetAmount
The asset amount to purchase or sell the NFT
✅
offerId
Select an NFT order that is listed for sale or made an offer by someone
✅
isSell
To buy (false) or sell (true) the target NFT
✅