GetPumpFunAMMSwapsStream

This channel provides information on any Pump.fun AMM swaps events.

Subscribe

Method

GetPumpFunAMMSwapsStream

Parameters:

Parameter
Type
Description

pools

repeated string

A list of pool addresses to track swap events.

Subscribe sample:

wscat -H "Authorization:$AUTH_HEADER" -c wss://pump-ny.solana.dex.blxrbdn.com/ws --wait 1000  --execute ' {"jsonrpc": "2.0", "id": 1, "method": "subscribe", "params": ["GetPumpFunAMMSwapStream", {"pools": ["6WwcmiRJFPDNdFmtgVQ8eY1zxMzLKGLrYuUtRy4iZmye"]}] }]}'

Event Result Details:

Field
Type
Description

pool

string

Pool address.

user

string

Swap transaction owner's address.

isBuy

boolean

Identify if the transaction is a token purchase transaction.

quoteMint

string

The quote token address.

baseMint

string

The base token address.

inAmount

unit64

In-token amount in this swap transaction. Unit is based on token decimal.

outAmount

unit64

Out-token amount in this swap transaction. Unit is based on token decimal.

txHash

string

Transaction signature.

timestamp

google.protobuf.Timestamp

Time stamp of the event.

Sample event:

{
  "jsonrpc": "2.0",
  "method": "subscribe",
  "params": {
    "subscription": "309cf033-f340-4928-b3d5-d25f28114300",
    "result":{
      "pool":"6WwcmiRJFPDNdFmtgVQ8eY1zxMzLKGLrYuUtRy4iZmye",
      "user":"2Bjgpc23KTQq6bJR39ESCRHdc3LzpKML1jpGssFg4Kbu",
      "isBuy":false,
      "quoteMint":"So11111111111111111111111111111111111111112",
      "baseMint":"8ncucXv6U6epZKHPbgaEBcEK399TpHGKCquSt4RnmX4f",
      "inAmount":74470530751,
      "outAmount":245838031,
      "txHash":"w2X3xBrAVnKcDq7T9aMNS4joAY7bfATecTv7wvaNDxFc3rocupZLYrZwTkpZUWx8hbbbbDHowv5CKoK4A8SSKkg",
      "timestamp":"2025-04-24T20:19:19.918922598Z"
    }
  }
}

Last updated