Skip to content
API reference

PumpPortal API: WebSocket data, Local and Lightning transactions

By MassLauncher · Updated · 3 min read

PumpPortal (also called Pump Portal) is a third-party API for Pump.fun. Read launch events over its Data API, get transaction bytes to sign yourself with Local, or use Lightning to let PumpPortal submit from a linked wallet.

Which PumpPortal endpoint should you use?

Data feed and transaction endpoints on pumpportal.fun
InterfaceWhat you getWho signs and sends
Data API: WebSocket /api/dataA stream of messages for subscribed eventsNobody. This is a read-only stream.
Local Transaction API: POST /api/trade-localSerialized transaction bytes on successYour signer signs the transaction; your app sends it via your RPC.
Lightning Transaction API: POST /api/tradeA JSON response with a signature or errorsPumpPortal handles signing and submission using the Lightning wallet linked to your API key.

Watch new Pump.fun tokens over one WebSocket

Use subscribeNewToken for creation events and subscribeMigration for migration events. PumpPortal lists both streams as free. The subscribeTokenTrade and subscribeAccountTrade streams are metered and require a PumpPortal API key and funded linked wallet. The data docs list the current rate and minimum balance.

Keep one WebSocket connection and send new subscription messages on it. If you are building a launch monitor, record the mint and when your client saw each event. When the connection drops, mark the gap in your log. A missing event in your log does not tell you whether a launch happened while you were disconnected.

Create a token and check what came back

PumpPortal documents token creation as the create action on the Local or Lightning transaction endpoint, with token metadata and a mint supplied according to the chosen flow. Subscribing to subscribeNewToken observes creation events; it never creates a coin.

Use Local if you want to keep signing in your own app. Inspect the returned instructions before authorizing a signature. With Lightning, an API key can authorize spending from the linked wallet. Keep it server-side and out of logs, browser code and screenshots, including when it appears in a request URL.

For example, a Local response with transaction bytes means there is a transaction to inspect; nothing has been sent by that endpoint. A Lightning response with a signature gives you something to look up. Check the required confirmation level and transaction error status on Solana, then verify that the successful transaction created the expected mint. The signature alone cannot tell you any of that.

Use the MassLauncher API

Sign in to manage your API keys and read the account reference.

Open API keys and docs