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.


_16
String collection = "collection_address";
_16
String NFTName = "NewNFT";
_16
String symbol = "NFT";
_16
String detailUrl = "https://example.com/path/detail.json";
_16
_16
MirrorWorld.mintNFT(collection, NFTName, symbol, detailUrl, new MintNFTListener() {
_16
@Override
_16
public void onMintSuccess(MintResponse userResponse) {
_16
Log.d("MirrorSDK","Mint result is:"+MirrorGsonUtils.getInstance().toJson(userResponse));
_16
}
_16
_16
@Override
_16
public void onMintFailed(long code, String message) {
_16
Log.d("MirrorSDK","Mint failed,code is:"+code+" message:"+message);
_16
}
_16
});

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Tutorials

    Guides

    API Reference