Pumpfun pool for token SOL and token balances

Returns balance updates on Solana, where currency mint address is 26ka7q…pump or 111111…1111 and block time since 2024-06-25: token owner, account address, currency mint address, native and post balance.

By Aleksey · saved 25 June 2024 · Bitquery API v2

What it returns

Filters

The query

query PumpFunPool($from: DateTime, $pool: String, $token: String! ) {
  Solana {
    BalanceUpdates(
    
      where: { 
        Block: {
          Time: {
            since: $from
          }
        }
        
        BalanceUpdate: {
          Currency: {
            MintAddress: {
              in: [$token, "11111111111111111111111111111111"]
            }
          }
        }
        
        any: [
          {BalanceUpdate: {
            Account: {
              Address: 
              {
                is: $pool
              }
            },
            Currency: {
              Native: true
            }
          }},
          {
            BalanceUpdate: {
              Account: {
                Token: {
                  Owner: {
                    is: $pool
                  }
                }
              },
              Currency: {
                MintAddress: {
                  is: $token
                }
              }
            }
          }
        ]
        
      }
    ) {
    		BalanceUpdate {
          Account {
            Token {
              Owner
            }
            Address
          }
          
          Currency {
            MintAddress
            Native
          }
          PostBalance(maximum: Block_Slot)
          
        }
      }
  }
}

Variables

{
  "from": "2024-06-25T07:00:00Z",
  "pool": "4PLmF41S36pNZr8sQm2s2FAhNhdWu7d14B5eMiGxndt7",
  "token": "26ka7qLc9JgQVnAfmDwBnagaEUL2MFkSQQmvEv6xpump"
}

Similar queries