NFT

export interface NFTResult extends NFTBlockchain {
    /**
     * Blockchain ID
     */
    blockchainId: string;
    /**
     * List of idNFTs
     */
    ids: number[];
    /**
     * List of interal MTM _ids
     */
    _ids: string[];
    /**
     * List of files urls
     */
    images: string[];
    /**
     * List of files jsons
     */
    jsons: string[];
    /**
     * SmartContract ID
     */
    smartContractId: string;
    /**
     * Total amount NFTs to mint
     */
    totalToMint: number;
    typeBlockchain: number;
}
export interface NFTBlockchain {
    /**
     * List of Wallet addresses
     */
    addresses: string[];
    /**
     * List of Amount of NFTs created per wallet
     */
    amounts: number[];
    /**
     * List of IPFS URIs
     */
    uris: string[];
}
export interface NFTPayload {
    /**
     * Name of the NFT.
     */
    name: string;
    /**
     * URL of the file provided for the NFT
     */
    imageUrl?: string;
    /**
     * AWS id of the file provided for the NFT in case your file is stored in our systems
     */
    imageName?: string;
    /**
     * Wallet of the NFT owner
     */
    wallet: string;
    /**
     * Key-value custom pairs for storing extra data in the collection.
     */
    attributes: Attribute[];
    description?: string;
}
export interface NFTData extends NFTPayload {
    /**
     * SmartContract unique ID
     */
    smartContractId: string;
    /**
     * MTM unique ID
     */
    _id: string;
    /**
     * Collection unique ID
     * For example:
     *  If a collection has 100 NFTs and this NFT has the idNFT=56
     *  it means this is the NFT number 56 in creation order.
     */
    idNFT: number;
    /**
     * AWS URL of the file used for this NFT creation
     */
    path: string;
    /**
  * Whether the NFT file is an image or not
  */
    isImage?: boolean;
    /**
    * Format type of the file used for the NFT
    */
    contentType?: string;
    /**
     * AWS URL of the json file with the configuration for this NFT
     */
    json: string;
    /**
     * IPFS URL for this NFT
     */
    ipfsUrl: string;
    /**
     * PENDING = 0 Initial value
     * SIGNED = 1 NFT is signed
     * MINTED = 2 Accepted and confirmed in the blockchain
     * REJECTED = 3 NFT had an error while signing
     * FAILED = 4 TODO
     */
    status: STATUS_IN_BC;
    /**
     * Whether the NFT is an evolution or not
     */
    isEvolution?: boolean;
    /**
     * Whether the NFT is burned or not
     */
    burned?: boolean;
}
export interface MintResult {
    status: STATUS_IN_BC;
}
export interface BurnResult {
    burnable: boolean;
}

Last updated