Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuides
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 tokenID = "token ID";
String confirmation = MirrorConfirmation.Default;
String toWalletAddress = "target wallet address";
MirrorWorld.mintNFT(activity, collection, tokenID, confirmation, toWalletAddress, 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