🎮
Unity
  • 👋Unity SDK
  • ⚙️Getting Started
    • ⚙️Installation
    • Basic Concepts
  • Features and Functionality
    • 🔗Phantasma Link Client
    • ☁️PhantasmaAPI
    • 📝Scriptbuilder
  • Tutorials and Examples
    • 🖥️Examples
      • Get Account Balances
      • Send a Transaction
      • Get Transaction by Hash
      • Get NFT
      • Get Multiple NFTs
      • Invoke Raw Script
      • Mint an NFT
      • Update an NFT's RAM
      • Burn an NFT
      • Send an NFT
      • Infuse an NFT
      • Mint Tokens
      • Burn Tokens
      • Transfer Tokens
      • Logging in to the Wallet
    • 📹Tutorials
  • Resources
    • 👻About Phantasma
    • 👻Getting Started
    • 🧑‍🤝‍🧑For new Soldiers
    • 👨‍💻For Developers
Powered by GitBook
On this page
  1. Tutorials and Examples
  2. Examples

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);
    }));
}
PreviousGet NFTNextInvoke Raw Script

Last updated 2 years ago

🖥️