pumpfun to pumpswap migration stream

Streams instructions on Solana as they happen, where program address is pAMMBa…fXEA and program method is create_pool: block time, program name, method, account names, arguments name, big integer, value address and 13 more fields.

By gaurav · saved 30 March 2026 · run 1 time · Bitquery API v2

What it returns

Filters

The subscription

subscription{
  Solana {
    Instructions(
      where: {
        Transaction: {Result: {Success: true}}
        Instruction: {
          Program: {
            Method: {is: "create_pool"}
            Address: {is: "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"}
            # coin_creator must NOT be the null/system address
            Arguments: {
              includes: [
                {
                  Name: {is: "coin_creator"}
                  Value: {
                    Address: {
                      notIn: ["11111111111111111111111111111111"]
                    }
                  }
                }
              ]
            }
          }
        }
        any: [
          # Signal 1: CPI-based — create_pool called by pump.fun migrate ix
          {
            Instruction: {
              CallerIndex: {eq: 2}
              Depth: {eq: 1}
              CallPath: {includes: {eq: 2}}
            }
          }
          # Signal 2: Classic pumpfun leftover base amount ~84.99B
          {
            Instruction: {
              Program: {
                Arguments: {
                  includes: [
                    {
                      Name: {is: "base_amount_in"}
                      Value: {BigInteger: {ge: "84980000000", le: "85010000000"}}
                    }
                  ]
                }
              }
            }
          }
          # Signal 3: Inverted pair — 206.9T base + ~84.99B SOL as quote
          {
            Instruction: {
              Program: {
                Arguments: {
                  includes: [
                    {
                      Name: {is: "base_amount_in"}
                      Value: {BigInteger: {eq: "206900000000000"}}
                    }
                  ]
                }
              }
            }
          }
          # Signal 4: Token mint address ends with "pump"
          {
            Instruction: {
              Accounts: {
                includes: {Address: {endsWith: "pump"}}
              }
            }
          }
        ]
      }
    ) {
      Migrate_Time: Block {Time}
      Instruction {
        Program {
          Name
          Method
          AccountNames
          Arguments {
            Name
            Value {
              ... on Solana_ABI_BigInt_Value_Arg {bigInteger}
              ... on Solana_ABI_Address_Value_Arg {address}
              ... on Solana_ABI_Boolean_Value_Arg {bool}
              ... on Solana_ABI_Integer_Value_Arg {integer}
            }
          }
        }
        Accounts {
          Address
          IsWritable
          Token {Mint Owner ProgramId}
        }
        CallerIndex
        Depth
        CallPath
      }
      Transaction {Signature Signer Fee}
    }
  }
}

Similar queries