mintAssets()
Mint new assets from the specified collection to the specified user
Parameters
export type MintAssetsProps = {
collectionId: string;
number: number; // number of assets to mint
walletUserId?: string; // specifies walletId if user is an app-owned wallet
mintTo?: string; // userId to receive assets (by default uses DID token from headers)
}
Examples
const asset= await assetlayer.assets.mint({
collectionId: 'collectionId',
number: 100
});
Return Types
type ReturnType = boolean;
Last updated