For creating NFTs, first of all you need to login in the Minteandome SDK.
import { MinteandomeSDK } from "minteandome-sdk";
const sdk = await MinteandomeSDK.login('36ff14e1-2bd9-4563-b752-d830d6b8eb0c');
Second, you need to get an existing SmartContract.
const sc = await sdk.getSmartContract('6436ce57cf37d2d6a4ffe50a');
const nftsToCreate: NFTPayload[] = [
{
name: 'Test SDK NFT',
description: 'This is a description',
imageUrl: 'https://alanmajchrowicz.com/wp-content/uploads/2019/01/glacier_peak_image_lake_north_cascades_washington_58245.jpg',
wallet: '0xb92fb131E0824D0eE1B2B16BB603cd744616A7b9',
attributes: [
{
key: 'a',
value: 'b'
}
]
},
{
name: 'Test SDK NFT 2',
description: 'This is a description',
imageUrl: 'https://alanmajchrowicz.com/wp-content/uploads/2019/01/glacier_peak_image_lake_north_cascades_washington_58245.jpg',
wallet: '0xb92fb131E0824D0eE1B2B16BB603cd744616A7b9',
attributes: [
{
key: 'a',
value: 'b'
}
]
},
];
const result = await sc.generateNFTs(nftsToCreate);
The result will be an object with the generated NFTs operation. However, if you want to access to the NFTs class, the easier way would be:
SmartContract class always have an updated list of all the NFTs generated for that SmartContract.