7. Match Orders
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.
Initialize SDK
You need to initialize the SDK in order to use it.
Match Orders
To select the correct order, please refer to Offers.
Parameters needed:
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
✅
📚SDK REFERENCE
Example:
Purchase the NFT with
offerId
= 31Initialize 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".
Last updated