ListNFT
List NFT on Mirror World Marketplace.
AuctionHouse: If you give the auctionHouse
param, you can specify which market you want to list in.
Parameters
mintAddress|string
- Mint address of a NFT.
price|double
- Price of this NFT on marketplace.
auction_house|string
- Which marketplace the target NFT on.
confirmation|string
- Confirmation of this request, you can check what confirmation we have by checking Confirmation class. If you want to get more information, please refer to explain of confirmation.
approveFinish|Action
- This action will be invoked after the user completes the permission verification in the approval process. You can use it to provide UI prompts. For example, in a game, after calling the current API, you can immediately display a "Waiting" UI. The SDK will then automatically pop up the permission verification interface. When the user enters the password on the interface and clicks "Return," this action will be called to close the previous "Waiting" UI.
action|Action<CommonResponse<ListingResponse>>
- The callback function of this method is used to receive the results.
Returns
response class
- CommonResponse<ListingResponse>
Code Example
string mintAddress = "mint_address";double price = 1;string confirmation = Confirmation.Default;string auctionHouse = "your_market_auction_house";Action approveFinish = null;MWSDK.Solana.Asset.ListNFT(mintAddress, price, auctionHouse, confirmation, approveFinish, (res) => { CommonResponse<ListingResponse> resObj = res; long code = res.code; ListingResponse lr = res.data; string signature = res.data.signature; //todo... PrintLog("result:" + JsonUtility.ToJson(res));});
Edit this page on GitHub