example using any instructions

Returns 10 instructions on Solana: program address, program name, method, account names, json, accounts address, is writable and 23 more fields.

By Divyasshree · saved 10 June 2025 · Bitquery API v2

What it returns

The query

{
  Solana {
    Instructions(
      limit: { count: 10 }
      where: {
        any: [
          {
            Instruction: {
              Program: {
                Address: { is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8" }
                Method: { is: "initialize2" }
              }
            }
          }
          {
            Instruction: {
              Program: {
                Address: { is: "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN" }
                Method: { is: "initialize_virtual_pool_with_spl_token" }
              }
            }
          }
        ]
      }
    ) {
      Instruction {
        Program {
          Address
          Name
          Method
          AccountNames
          Json
        }
        Accounts {
          Address
          IsWritable
          Token {
            Mint
            Owner
            ProgramId
          }
        }
        Logs
        BalanceUpdatesCount
        AncestorIndexes
        CallPath
        CallerIndex
        Data
        Depth
        ExternalSeqNumber
        Index
        InternalSeqNumber
        TokenBalanceUpdatesCount
      }
      Transaction {
        Fee
        FeeInUSD
        Signature
        Signer
        FeePayer
        Result {
          Success
          ErrorMessage
        }
      }
      Block {
        Time
        Height
      }
    }
  }
}

Similar queries