Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuidesChangelog
View Mirror World on Github
Join the Discord server

Language:

buyNFT

Purchase NFT on Mirror World Marketplace.


Activity activity = this;
String mintAddress = "mint address";
double price = 1;
String auctionHouse = "auction_house";
MirrorWorld.Solana.Asset.buyNFT(activity, mintAddress, price, auctionHouse, new BuyNFTListener() {
@Override
public void onBuySuccess(ListingResponse listingResponse) {
Log.d("MirrorSDK","Buy NFT success,NFT is:"+listingResponse.mint_address);
}
@Override
public void onBuyFailed(long code, String message) {
Log.d("MirrorSDK","Buy NFT faild,code:"+code+" message:"+message);
}
});

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Integration

    Guides

    API Reference

    Changelog