Instructions by Signatures_group_by

We require all instruction data regarding a transaction. We have to use this, as raw instruction data is required to decode certain programs, and we also often need the parent program / method the transfer belongs to (but not the root externalProgram / externalAction).

By Omkar_BQ · saved 27 January 2025 · run 1 time · Bitquery API v1

What it returns

The query

query ($signatures: [String!]!, $limit: Int!, $offset: Int!, $fromHeight: Int = 0) {
  solana(network: solana) {
    instructions(
      height: {gteq: $fromHeight}
      signature: {in: $signatures}
      options: {limit: $limit, offset: $offset, groupBy: false}
    ) {
      block {
        height
        timestamp {
          iso8601
        }
      }
      transaction {
        signature
      }
      callPath
      program {
        id
        parsedName
      }
      action {
        name
      }
      data {
        base58
      }
      log {
        logs
      }
    }
  }
}

Similar queries