2 joins

Returns the latest 50 instructions on Solana, where program address is 6EF8rr…wF6P: block time, program name, method, arguments name, json, float, bool and 13 more fields.

By Divyasshree · saved 11 June 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana {
    Instructions(
      limit: {count: 50}
      orderBy: {descending: Block_Time}
      where: {Instruction: {Program: {Address: {is: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"}}, Logs: {includes: {includes: "Migrate"}}}, Transaction: {Result: {Success: true}}}
    ) {
      Block{
        Time
      }
      Instruction {
        Program {
          Name
          Method
          Arguments {
            Name
            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
              }
            }
          }
          Address
          AccountNames
        }
        Accounts {
          Token {
            ProgramId
            Owner
            Mint
          }
          IsWritable
          Address
        }
      }
      Transaction {
        Signature
      }
      
      joinA: joinInstructions(
        Transaction_Signature: Transaction_Signature
        join: inner
        limit: {count: 50}
        orderBy: {descending: Block_Time}
        where: {Instruction: {Program: {Address: {is: "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"}, Method: {is: "create_pool"}}}}
      ) {
        Block {
          Time
        }
        Instruction {
          Program {
            Name
            Method
            Arguments {
              Name
              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 }
              }
            }
          Address
          AccountNames
          }
          Accounts {
            Token {
              ProgramId
              Owner
              Mint
            }
            IsWritable
            Address
          }
        }
        Transaction {
          Signature
        }
      }
      
      joinB: joinInstructions(
        Transaction_Signer: Transaction_Signer
        join: inner
        limit: {count: 50}
        orderBy: {descending: Block_Time}
        where: {Instruction: {Program: {Address: {is: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"}, Method: {is: "create"}}}}
      ) {
        Block {
          Time
        }
        Instruction {
          Program {
            Name
            Method
            Arguments {
              Name
              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 }
              }
            }
          Address
          AccountNames
          }
          Accounts {
            Token {
              ProgramId
              Owner
              Mint
            }
            IsWritable
            Address
          }
        }
        Transaction {
          Signature
        }
      }
      
    }
  }
}

Similar queries