alephium-web3 2.0.7

A Rust library to interact with the Alephium platform
Documentation
import "std/nft_interface"

@std(id = #0002)
@using(methodSelector = false)
Interface INFTCollection {
   // Collection Uri points to a json file containing metadata for the NFT collection.
   //
   // The schema of the json file is:
   // {
   //     "title": "NFT Collection Metadata",
   //     "type": "object",
   //     "properties": {
   //         "name": {
   //             "type": "string",
   //             "description": "Name of the NFT collection"
   //         },
   //         "description": {
   //             "type": "string",
   //             "description": "General description of the NFT collection"
   //         },
   //         "image": {
   //             "type": "string",
   //             "description": "A URI to the image that represents the NFT collection"
   //         }
   //     }
   // }
   pub fn getCollectionUri() -> ByteVec

   pub fn totalSupply() -> U256

   pub fn nftByIndex(index: U256) -> INFT

   // Validates that the NFT is part of the collection, otherwise throws exception.
   pub fn validateNFT(nftId: ByteVec, nftIndex: U256) -> ()
}