Skip to content

BSCsmartdev/Fourmeme-Token-Trading-Bot

Repository files navigation

Four.meme Token Launchpad Buyer

Minimal TypeScript script to buy tokens from Four.meme launchpad on BSC.

Features

  • ✅ TypeScript with type safety
  • ✅ Uses actual Four.meme contract ABI
  • ✅ buyTokenAMAP function for precise BNB spending
  • ✅ Detailed step-by-step logging for every transaction
  • ✅ Real-time progress tracking
  • ✅ Comprehensive error reporting

Setup

  1. Install dependencies:

    npm install
  2. Create .env file:

    BSC_RPC_URL=https://bsc-dataseed.binance.org/
    PRIVATE_KEY=your_private_key_here_without_0x_prefix
    FOUR_MEME_LAUNCHPAD_CONTRACT=0x...  # Launchpad contract address
    TOKEN_ADDRESS=0x...                 # Token you want to buy
    BUY_AMOUNT=0.1                      # Amount in BNB
    

Usage

Find active tokens:

npm run find
# or
npx ts-node findTokens.ts

Check token status:

# Check default token
npm run check

# Check specific token
npx ts-node buyToken.ts check 0xTokenAddress

Buy tokens:

# Buy token with default amount
npm start

# Buy specific token
npx ts-node buyToken.ts 0xTokenAddress

# Buy with custom amount
npx ts-node buyToken.ts 0xTokenAddress 0.5

Sell tokens:

# Sell token with default percentage (100%)
npm run sell

# Sell specific token (100%)
npx ts-node sellToken.ts 0xTokenAddress

# Sell specific percentage
npx ts-node sellToken.ts 0xTokenAddress 50

Contract Address

Find the Four.meme launchpad contract on BSCScan and update FOUR_MEME_LAUNCHPAD_CONTRACT in .env.

Contract ABI

The script now includes the actual Four.meme contract ABI with all buyToken and buyTokenAMAP functions.

Notes

  • Uses buyTokenAMAP for precise BNB amount spending
  • Make sure you have enough BNB for gas fees
  • Test with small amounts first

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published