consumeEvents instruction on OpenBook V2

Streams instructions on Solana as they happen, where program address is opnb2L…hpZb and program method is consumeEvents: transaction signature, accounts address, is writable, token mint, token owner, program ID, account names and 14 more fields.

By Akshat · saved 10 June 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription {
  Solana {
    Instructions(
      where: {Instruction: {Program: {Address: {is: "opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb"}, Method: {is: "consumeEvents"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Transaction {
        Signature
      }
      Instruction {
        Accounts {
          Address
          IsWritable
          Token {
            Mint
            Owner
            ProgramId
          }
        }
        Program {
          AccountNames
          Address
          Method
          Name
          Parsed
          Arguments {
            Name
            Type
            Value {
              ... on Solana_ABI_Json_Value_Arg {
                json
              }
              ... on Solana_ABI_Float_Value_Arg {
                float
              }
              ... on Solana_ABI_Boolean_Value_Arg {
                bool
              }
              ... on Solana_ABI_Bytes_Value_Arg {
                hex
              }
              ... on Solana_ABI_BigInt_Value_Arg {
                bigInteger
              }
              ... on Solana_ABI_Address_Value_Arg {
                address
              }
              ... on Solana_ABI_String_Value_Arg {
                string
              }
              ... on Solana_ABI_Integer_Value_Arg {
                integer
              }
            }
          }
        }
      }
    }
  }
}

Similar queries