Get newly created NFTs on Solana

Streams instructions on Solana as they happen, where program address is Tokenk…Q5DA, program method is initializeMint or initializeMint2 and account names length is 2: accounts address, is writable, token mint, token owner, program ID, account names, program address and 2 more fields.

By Akshat · saved 29 August 2024 · Bitquery API v2

What it returns

Filters

The subscription

subscription MyQuery {
  Solana {
    Instructions(
      where: {Instruction: {Program: {Address: {is: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"}, Method: {in: ["initializeMint", "initializeMint2"]}, AccountNames: {length: {eq: 2}}}}, Transaction: {Result: {Success: true}}}
    ) {
      Instruction {
        Accounts {
          Address
          IsWritable
          Token {
            Mint
            Owner
            ProgramId
          }
        }
        Program {
          AccountNames
          Address
        }
      }
      Transaction {
        Signature
        Signer
      }
    }
  }
}

Similar queries