1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "standbyModeInfo": {
12 "message": "This Actor only works in Standby mode",
13 "endpoints": [
14 "/health - Health check and service status",
15 "/events/all - All platform events (SSE stream)",
16 "/events/tokens/new - New token launches (SSE stream)",
17 "/events/tokens/new/detailed - Detailed new tokens (SSE stream)",
18 "/events/tokens/graduated - Token graduations (SSE stream)",
19 "/events/trades/pump - Pump.fun bonding curve trades (SSE stream)",
20 "/events/trades/pumpswap - PumpSwap trades (SSE stream)"
21 ],
22 "authentication": "Bearer token required in Authorization header",
23 "documentation": "See README.md for complete usage instructions"
24 }
25};
26
27
28const run = await client.actor("muhammetakkurtt/pump-fun-real-time-monitor").call(input);
29
30
31console.log('Results from dataset');
32console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
33const { items } = await client.dataset(run.defaultDatasetId).listItems();
34items.forEach((item) => {
35 console.dir(item);
36});
37
38