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

Language:

mintNFT

Mint NFT into collection. The mintID parameter is nullable, server will respond with "minting is proceeding, please wait for it" if it detects that a mintID has been minted already.


Activity activity = this;
String collection = "collection_address";
String confirmation = MirrorConfirmation.Default;
String detailUrl = "https://example.com/path/detail.json";
MirrorWorld.Solana.Asset.mintNFT(activity, collection, detailUrl, confirmation, new MintNFTListener() {
@Override
public void onMintSuccess(MintResponse userResponse) {
Log.d("MirrorSDK","Mint result is:"+MirrorGsonUtils.getInstance().toJson(userResponse));
}
@Override
public void onMintFailed(long code, String message) {
Log.d("MirrorSDK","Mint failed,code is:"+code+" message:"+message);
}
});

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Integration

    Guides

    API Reference

    Changelog