I’m trying to monitor incoming transactions on Pump.fun, specifically for a certain wallet or token. I want to know the best way to achieve this, whether it’s through their API, WebSocket, or another method. If possible, I would appreciate an example or guidance on how to set this up. Thank you!
2 Answers
Using the new web3 js library, you might want to read this page about subscriptions and use it to subscribe to the pump dot fun program address
https://github.com/solana-labs/solana-web3.js?tab=readme-ov-file#rpc-subscriptions
Also, check out this script that listens to events
https://github.com/rckprtr/pumpdotfun-sdk/blob/main/example/events/index.ts
In addition to the events subscriber mentioned by Jimi, you can use WebSockets, Geyser, or 3rd party tools like QuickNode Streams. Here are a few guides that specifically target the pump.fun program: