Get Multiple NFTs
This functionality is currently disabled and will be re‑enabled according to the roadmap
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.info/rpc");
var symbol = "CROWN";
var IDs = new String[] { "" };
StartCoroutine(api.GetNFTs(symbol, IDs, (nfts) =>
{
Debug.Log(nfts.Length);
}));
}
Last updated