track all migrations pumpfun to swap

Returns instructions on Solana: program address, program name, method, arguments name, arguments type, json, float and 32 more fields.

By Divyasshree · saved 26 May 2025 · Bitquery API v2

What it returns

The query

{
  Solana {
    Instructions(
      where: {
        any: [
          {
            Instruction: {
              CallerIndex: { eq: 2 }
              Depth: { eq: 1 }
              CallPath: { includes: { eq: 2 } }
              Program: {
                Method: { is: "create_pool" }
                Address: { is: "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA" }
              }
              Accounts: {
                includes: {
                  Address: { is: "7JsSjVLACA1V7SzTHHeE9XKCP3KJGUwUmqgDm5Hupump" }
                }
              }
            }
          },
          {
            Instruction: {
              Logs: { includes: { includes: "Migrate" } }
            }
          },
          {
            Transaction: {
              Signer: { is: "39azUYFWPz3VHgKCf3VChUwbpURdCHRxjWVowf5jUJjg" }
            }
          }
        ]
      }
    ) {
      Instruction {
        Program {
          Address
          Name
          Method
          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
              }
            }
          }
          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