TypeScript trading bot scaffold for BagsApp/BagsFM token flows:
- Launch a new coin on BagsFM
- Bundle multi-wallet buy transactions through Jito
- Gather flow to sell from all bundle wallets
launch-and-buyflow:- Creates launch transaction from BagsFM API
- Signs launch tx with main wallet
- Builds buy txs for all bundle wallets
- Sends launch + buys as Jito bundles
gather-sellflow:- Builds sell tx for each bundle wallet
- Signs sells and submits via Jito bundles
- Config-driven via
.env
This bot expects your BagsFM API (or your proxy) to return a serialized base64 transaction for launch/buy/sell endpoints and to include mint in launch response.
You can adjust payload/response contracts in:
src/integrations/bagsfm.tssrc/types/bot.ts
- Install dependencies:
npm install- Copy env file:
cp .env.example .env- Fill required envs:
SOLANA_RPC_URLJITO_BUNDLE_URLMAIN_WALLET_PRIVATE_KEYBUNDLE_PRIVATE_KEYSBAGSFM_API_BASE_URL
- (Optional) Build:
npm run buildnpm run start -- launch-and-buy --name "My Coin" --symbol "MYC" --description "My launch coin"Optional flags: --image-url, --website, --twitter, --telegram
npm run start -- gather-sell --mint <MINT_ADDRESS>npm run start- run botnpm run dev- run with watch modenpm run build- compile TSnpm run typecheck- static type checknpm run lint- lint code
- telegram: https://t.me/trade_SEB
- twitter: https://x.com/TradeSEB_