Get Multiple NFTs

This example demonstrates how to fetch multiple NFTs at once using the GetNFTs() method from the PhantasmaAPI class. The number of fetched NFTs is then logged to the console.

public void GetNFTs()
{
    PhantasmaAPI api = new PhantasmaAPI("https://testnet.phantasma.io/rpc");
    var symbol = "CROWN";
    var IDs = new String[] { "" };
    StartCoroutine(api.GetNFTs(symbol, IDs, (nfts) =>
    {
        Debug.Log(nfts.Length);
    }));
}

Last updated