Instructions by Signatures

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 Nick · saved 24 January 2025 · run 3 times · 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 }
      ) {
        block {
          height
          timestamp {
            iso8601
          }
        }
        transaction {
          signature
        }
        callPath
        program {
          id
          parsedName
        }
        action {
          name
        }
        data {
          base58
        }
        log {
          logs
        }
      }
    }
  }

Similar queries