INNER CODE UNIT · TypeScript
LS
bitman09/pumpfun-sniper-bot · src/index.ts:27
const LS = BUY_AMOUNT * (100 - STOP_LOSS) / 100;
const withGaser = () => {
logger.info('Your Pub Key => ', payerKeypair.publicKey.toString());
let isbuying = false;
let positionCount = 0;
function sendRequest(ws: WebSocket) {
const request = {
jsonrpc: "2.0",
id: 420,
method: "transactionSubscribe",
params: [
{
failed: false,
accountInclude: ["6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"]