Stream Swaps

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

Subscribe

Parameters:

ParameterTypeDescription

tokens

repeated string

A list of tokens to track swap events. Please provide token addresses instead of token symbols.

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": [  "GetPumpFunSwapsStream", {"tokens":["CxFuPaED39nQbex9Datz4ctHUTnC14EYYcejdKqMpump"]} ]}'

Event Result Details:

FieldTypeDescription

slot

int64

The slot number

txnHash

string

Transaction information of the found transaction

mintAddress

string

Meta information of the found transaction

userAddress

string

Swap transaction owner's address.

userTokenAccountAddress

string

Swap transaction owner's token address.

bondingCurveAddress

string

Bonding Cureve program address.

tokenVaultAddress

string

Token valut program address.

solAmount

unit64

SOL amount in this swap transaction. In lamport.

tokenAmount

unit64

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

isBuy

boolean

Identify if the transaction is a token purchase transaction.

virtualSolReserves

unit64

Amount of virtual SOL reserve.

virtualTokenReserves

unit64

Amount of virtual Token reserve.

timestamp

google.protobuf.Timestamp

Time stamp of the event.

Sample event:

{
  "jsonrpc": "2.0",
  "method": "subscribe",
  "params": {
    "subscription": "309cf033-f340-4928-b3d5-d25f28114300",
    "result":{
      "slot": '288976567',
      "txnHash": "4gRG4Hvi78Tn8DdgnMK4eWA9ooja51kFC8eFL8QjU7ZSXhsP4WM8fprHVBYi9Hdp1uFTVFanF7KRweV27jrz2RuD",
      "mintAddress": "CxFuPaED39nQbex9Datz4ctHUTnC14EYYcejdKqMpump",
      "userAddress": "DEjxYb7QbDdsCgQpB6n6PxDjgUN1ssXp8xJDyEZf8XPE",
      "userTokenAccountAddress": "HsPc2WVGcFUAVM78aoWkBLXSuAt1KE7Gnbc6pheeYnef",
      "bondingCurveAddress": "3EXfPtMU3S3qGNqBUhorD9BKXjbm7CdWifpA9eU7Jjik",
      "tokenVaultAddress": "5JtUhSgJVUT9pYhranPAAsyJ3u4EcQ4KESs7cE3Nsw1d",
      "solAmount": 108550047,
      "tokenAmount": 3842860445202,
      "isBuy": true,
      "virtualSolReserves": 30208550047,
      "virtualTokenReserves": 1065592355501642,
      "timestamp": "2024-09-10T14:43:53.668456Z"
    }
  }
}

Last updated