Skip to content

ImArtisann/Pump.fun-Websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To Install npm install npm install @imartisann/pumpwebsockets@latest

To subscribe to trades created

import {subscribeToTradeCreated} from "@imartisann/pumpwebsockets"

async function setupTradeSubscription() {
    try {
        const client = await subscribeToTradeCreated(data => {
            console.log(data);
        });
        console.log('Successfully subscribed to trade events');
    } catch (error) {
        console.error('Failed to subscribe to trade events:', error);
    }
}

setupTradeSubscription();

tradeCreated

To subscribe to new coins created

import {subscribeToNewCoinCreated} from "@imartisann/pumpwebsockets"

async function subscribeToNewCoinSubscription() {
    try {
        const client = await subscribeToNewCoinCreated(data => {
            console.log(data);
        });
        console.log('Successfully subscribed to trade events');
    } catch (error) {
        console.error('Failed to subscribe to trade events:', error);
    }
}

subscribeToNewCoinSubscription();

coinCreated

About

npm package to easily subscribe to events that take place on pump.fun subscribe to new trades created or to new coins created

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors