# Pump.fun New Token Monitor - On-Chain Dev Check (`stas_k/pump-fun-new-token-monitor`) Actor

Launches disappear before a page refreshes, and most feeds show a copy, not the chain. Read the pump.fun program itself: creator wallet, what they bought at birth, the bonding curve at that second, and the signature.

- **URL**: https://apify.com/stas_k/pump-fun-new-token-monitor.md
- **Developed by:** [Stas K](https://apify.com/stas_k) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.18 / 1,000 tokens

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## pump.fun New Token Monitor - Live Launches, Read From the Chain

A new token lives or dies in the first minute, and by the time a page refreshes it is already
old. Every site feed is somebody else's copy of the same chain, and most of them are geo-blocked
or rate-limited exactly when the market is hot.

This actor watches the pump.fun program on Solana mainnet itself. One row per token creation,
with the facts only the chain can give you.

### What you get, per token

- `mint`, `name`, `symbol`, `uri` - exactly as the creator wrote them
- `creator` - the address that launched it, from the creation event
- `createdAt` - the on-chain timestamp of the creation, ISO 8601 UTC, plus `ageSeconds`
- `devBuyTokens`, `devBuyPercent` - what the creator bought in the creation transaction itself
- `virtualSolReserves`, `realSolReserves`, `curveProgressPercent` - where the bonding curve stood
  at that second (the curve fills at 85 SOL before migration)
- `creatorTokensThisRun` - how many launches by the same creator this run had already seen
- `signature` - the creation transaction, so you can check every row yourself
- `source` - `stream` for the live logs subscription, `poll` for the HTTP fallback

### Why from the chain

- No page to refresh and no frontend to geo-block: the actor reads program logs.
- No per-token request for the base row: the creation event already carries the mint, the
  creator and the curve.
- Measured before building: `logsSubscribe` on the pump.fun program gave 5654 notifications in
  40 seconds and 16 creations, about 24 new tokens a minute (roughly 34 000 a day).

### Input

| field | default | meaning |
|---|---|---|
| `durationSecs` | 90 | how long to watch, 10 to 3600 |
| `maxTokens` | 200 | stop after this many rows, 0 = no limit |
| `minDevBuyPercent` | 0 | keep tokens the creator bought at least this share of |
| `maxDevBuyPercent` | 100 | drop tokens the creator grabbed more than this at birth |
| `onlyNewCreators` | false | keep only creators this run has not seen before |
| `nameContains` | "" | case-insensitive filter on the name |
| `symbolContains` | "" | case-insensitive filter on the symbol |
| `includeDevBuy` | true | read the creator's buy from the creation transaction |
| `rpcUrl` | public | your own Solana HTTP RPC |
| `rpcWsUrl` | public | your own Solana websocket RPC |
| `rpcPaceSecs` | 2.5 | minimum pause between two RPC calls; lower it on your own endpoint |

The watch window never overruns the platform: a run reads `ACTOR_TIMEOUT_AT`, and if the time left
is shorter than `durationSecs` it shortens the window to fit, leaving room for the summary. The
summary then carries `durationSecsRequested` and `durationCappedByPlatform: true`. This matters in
practice: an automatic check that allows five minutes killed a 300 s run as TIMED-OUT before it
could say anything, and a container restart in the middle can double the window, which is why the
default is 90 and not 300.

### Pricing

One charge per delivered token row, event `token-delivered`, whatever the row holds. A ten-minute
run that catches 240 launches is 240 charges; a quiet minute, a token dropped by your filters, a
duplicate mint or a row that failed to write costs nothing. The row is written and charged in one
call, so you never pay for a row you did not receive.

Apify puts a spending cap on the run when you do not set one (about $4.4), and the run stops at
the cap with `stopReason: "spending-cap"` instead of going green with a half-empty dataset. Raise
`maxTotalChargeUsd` in the run options for a longer stream. Compute of your own run is billed by
Apify separately from the rows.

### Run summary

In the named key-value store `pump-fun-new-token-monitor-summary` as `RUN_SUMMARY` and as
`RUN_SUMMARY-<runId>` (one named store is shared by the whole account, so two runs at once would
otherwise overwrite each other). The same summary also lands in the key-value store of the run
itself under `RUN_SUMMARY`.

It reports `tokensSeen`, `rowsDelivered`, `rowsUndelivered`, `filteredOut` with `filteredBy`,
`silentForSecs` (how long the feed has been quiet at the end of the run),
`duplicatesSkipped`, `reservesUnavailable`, `devBuyUnknown`, `notifications` (what the feed heard,
not what became rows), `signaturesSeen`, `signaturesUnread`, `chainGapSecs`,
`unparsableCreations`, `queuedNotDelivered`, `mode`, `streamFailures`, `stopReason` and
`datasetItemCount` (the dataset's own count, which the platform updates a few seconds late;
when it still trails `rowsDelivered` after a re-read, the summary says `datasetItemCountLag: true`
and reports `null` rather than a smaller number that would read as lost rows). The counters add up: `tokensSeen = rowsDelivered + filteredOut +
rowsUndelivered`.

Money is reported the same way: `chargedEvents` is what the platform actually charged,
`deliveredUncharged` counts rows that went out without a charge (a run whose pricing has no
`token-delivered` event), and `billingActive` says which mode the run was in. On a billed run
`chargedEvents` equals `rowsDelivered`.

### Nulls mean unknown, never zero

- `devBuyTokens` and `devBuyPercent` are `0` when the creation transaction was read and no
  tokens of this mint moved between the launch wallets: the creator really bought nothing, and
  that is the strongest signal a launch has. They are `null` only when the transaction could not
  be read at all (`includeDevBuy` off, or the endpoint refused), because not knowing is not the
  same as knowing zero.
- `virtualSolReserves`, `realSolReserves` and `curveProgressPercent` are `null` when the reserve
  fields of the event do not describe a curve that has just been born. Measured on 8 live
  creations: 5 reported exactly 30 virtual SOL, 3 reported a figure no newborn curve can hold
  (814 and 8901 SOL while the real token reserves were still untouched). The row keeps the mint
  and the time; the numbers we cannot stand behind are dropped.

### What this actor does not do

- It does not trade, sign or hold keys.
- It does not scrape the pump.fun website (that frontend answers 403 from some regions; the chain
  does not).
- It does not track migration to an AMM, holder concentration or a creator's whole on-chain past:
  `creatorTokensThisRun` counts only what this run has seen.
- It does not promise every launch under a heavy websocket: the public endpoint drops connections,
  and the actor switches to HTTP polling, marking those rows `source: poll`. That fallback is a
  sample of the flow, sized by `rpcPaceSecs`, and the summary reports what it missed.

### Rate limits and the fallback, honestly

The public endpoint rate-limits hard. Measured: a burst of one request every 0.3 s earned 429
within ten calls, while one call every 2.5 s (0.4 a second, the natural rate of creations) went
through 6 of 6. That is why `rpcPaceSecs` defaults to 2.5 and is yours to lower on a paid
endpoint. With `includeDevBuy` on, the actor makes one extra call per token in stream mode and
none at all in poll mode, where the transaction is already open.

The HTTP fallback samples the stream, it does not copy it. Measured: a page of 100 signatures
covers about 0.71 s of chain at 141 notifications a second, and opening those transactions at the
safe pace takes minutes. The summary says how much was missed instead of pretending otherwise:

- `signaturesSeen` - signatures the fallback listed;
- `signaturesUnread` - signatures it could not open (rate limit, network). They stay pending for
  the next cycle: a signature is remembered only after its transaction came back, so a 429 no
  longer hides a page forever;
- `chainGapSecs` - how many seconds of chain the last page covered;
- `unparsableCreations` - creations that carried our event discriminator but whose body this
  version could not decode;
- `queuedNotDelivered` - tokens seen but still waiting when the run hit `durationSecs`.

### Failure is loud

A run that receives nothing at all, or receives notifications but not a single creation, fails
with a message naming the endpoint instead of ending green with an empty dataset. Notifications
are counted as the feed hears them, so a live socket on a quiet minute is not reported as a dead
RPC. A run whose rows were all dropped by your own filters stays green and says in the run header
that the filter did it. Creations this version cannot decode are counted in
`unparsableCreations`, never silently dropped.

# Actor input Schema

## `durationSecs` (type: `integer`):

How long the run listens to the chain. 90 by default (an automated platform check expects the whole run under five minutes, and a container restart eats a minute); 3600 is one hour. The run stops itself at this limit and says so in the summary. If the platform gives the run less time than this (ACTOR_TIMEOUT_AT), the window is shortened to fit and the summary says durationCappedByPlatform.

## `maxTokens` (type: `integer`):

Hard stop on delivered rows. 0 means no limit and the run ends by duration only.

## `minDevBuyPercent` (type: `number`):

Keep only tokens where the creator bought this share of the total supply in the creation transaction. 0 keeps every token. A creator who bought nothing has devBuyTokens 0 and devBuyPercent 0.

## `maxDevBuyPercent` (type: `number`):

Drop tokens where the creator grabbed more than this share at birth. 100 keeps every token.

## `onlyNewCreators` (type: `boolean`):

Keep a token only if this run has not already seen another launch by the same creator address. This is history inside the run, not the creator's whole on-chain past: chain-wide history is planned, not promised here.

## `nameContains` (type: `string`):

Case-insensitive substring match on the token name. Empty keeps everything.

## `symbolContains` (type: `string`):

Case-insensitive substring match on the token symbol. Empty keeps everything.

## `includeDevBuy` (type: `boolean`):

One RPC call per token to read the creator's token balance change in the creation transaction. With this off, devBuyTokens and devBuyPercent stay null (not zero: unknown is not the same as nothing) and the filters above cannot be applied, so the run says so and keeps every token.

## `rpcUrl` (type: `string`):

Use your own endpoint to avoid the public rate limit. Empty means the public https://api.mainnet-beta.solana.com.

## `rpcWsUrl` (type: `string`):

Websocket endpoint for live logs. Empty means the public wss://api.mainnet-beta.solana.com, which drops connections under load; the actor then keeps working by polling the HTTP endpoint and marks those rows source poll. The fallback samples the stream and says how much it missed in the summary.

## `rpcPaceSecs` (type: `number`):

Minimum pause between two RPC calls. The default 2.5 is the only interval measured to pass the public endpoint cleanly (0.3 s earned 429 within ten calls). A paid endpoint of your own takes 0.1 or less, and then the HTTP fallback covers far more of the stream.

## Actor input object example

```json
{
  "durationSecs": 90,
  "maxTokens": 200,
  "minDevBuyPercent": 0,
  "maxDevBuyPercent": 100,
  "onlyNewCreators": false,
  "nameContains": "",
  "symbolContains": "",
  "includeDevBuy": true,
  "rpcUrl": "",
  "rpcWsUrl": "",
  "rpcPaceSecs": 2.5
}
```

# Actor output Schema

## `dataset` (type: `string`):

One row per pump.fun token creation this run saw, newest last. Fields: mint, name, symbol, uri, creator, createdAt (ISO 8601 UTC, from the on-chain event), ageSeconds at the moment of the row, devBuyTokens and devBuyPercent (what the creator bought in the creation transaction; null when includeDevBuy is false or the transaction could not be read, because unknown is not zero), virtualSolReserves, realSolReserves, curveProgressPercent (real SOL over the 85 SOL the curve fills before migration), creatorTokensThisRun (how many creations by the same creator this run had already seen), signature (the creation transaction), source (stream when it came from the live logs subscription, poll when the run had to fall back to HTTP). Every row is a real creation: tokens the run filtered out or could not parse are counted in the summary, never written as empty rows.

## `summary` (type: `string`):

Stored in the named key-value store pump-fun-new-token-monitor-summary as RUN_SUMMARY and as RUN_SUMMARY-<runId>, because one named store is shared by the whole account and two runs at once would overwrite each other. Keys: tokensSeen, rowsDelivered, rowsUndelivered, filteredOut, filteredBy, duplicatesSkipped, reservesUnavailable, devBuyUnknown, skippedUnparsable, unparsableCreations, notifications (what the feed heard, not what became rows), signaturesSeen, signaturesRead, signaturesUnread, chainGapSecs, silentForSecs, queuedNotDelivered, mode (stream or poll), streamFailures, stopReason (duration-reached, max-tokens or spending-cap), elapsedSecs, durationSecs, maxTokens, rpcUrl, rpcWsUrl, rpcPaceSecs, chargedEvents, deliveredUncharged, billingActive, datasetItemCount, datasetItemCountLag, datasetWriteErrors, includeDevBuy, delivery, filters, lastFeedError. Every counter adds up: tokensSeen = rowsDelivered + filteredOut + rowsUndelivered. A run that heard notifications but read no creation, or heard nothing at all, fails with a human status message naming the endpoint instead of ending green with an empty dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("stas_k/pump-fun-new-token-monitor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("stas_k/pump-fun-new-token-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call stas_k/pump-fun-new-token-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stas_k/pump-fun-new-token-monitor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/myPNY2AHRbQFLTIXz/builds/F5FvfTzRBKPCoQHDu/openapi.json
