Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Solana Trading Bot Overview


100%

Recommended Posts

  • Administrator

The Solana Trading Bot is an automated software application designed to facilitate the buying and selling of tokens on the Solana blockchain. It executes transactions based on user-defined parameters and strategies, allowing for a more efficient trading experience.

This bot has the capability to track real-time market conditions, including factors such as pool burns and mint renouncement, and will conduct trades once these specific criteria are met.

Setup Instructions

To set up the bot, follow these steps:

  1. Create a new, empty Solana wallet.
  2. Transfer some SOL to this wallet.
  3. Convert some SOL into either USDC or WSOL, depending on your chosen configuration.
  4. Update the configuration settings by editing the .env.copy file (ensure to remove the ".copy" from the filename).
    • Refer to the Configuration section below for guidance.
  5. Install the necessary dependencies by entering the command: npm install.
  6. Launch the bot by running: npm run start in your terminal.

You should see a confirmation output upon successful execution.

spacer.png

Configuration Settings

Wallet

  • PRIVATE_KEY: Input the private key of your wallet.

Connection

  • RPC_ENDPOINT: The HTTPS RPC endpoint used to interact with the Solana network.
  • RPC_WEBSOCKET_ENDPOINT: WebSocket RPC endpoint for receiving live updates from the Solana network.
  • COMMITMENT_LEVEL: The commitment level for transactions (e.g., "finalized" for maximum security).

Bot Settings

  • LOG_LEVEL: Configure the logging level, e.g., info, debug, trace.
  • ONE_TOKEN_AT_A_TIME: Set to true if you want to buy one token at a time.
  • COMPUTE_UNIT_LIMIT: Limit for computing resources to determine fees.
  • COMPUTE_UNIT_PRICE: Price used in computing fees.
  • PRE_LOAD_EXISTING_MARKETS: This option allows the bot to load all existing markets into memory at startup (not recommended with public RPC).
  • CACHE_NEW_MARKETS: Set to true to cache newly created markets (not recommended with public RPC).
  • TRANSACTION_EXECUTOR: Choose "warp" to leverage warp infrastructure or "jito" to use JSON-RPC jito executor.

Buying Settings

  • QUOTE_MINT: Specifies which pools to target for buying: USDC or WSOL.
  • QUOTE_AMOUNT: The amount allocated for purchasing each new token.
  • AUTO_BUY_DELAY: Delay in milliseconds before executing a token purchase.
  • MAX_BUY_RETRIES: The maximum retry attempts for purchasing a token.
  • BUY_SLIPPAGE: The acceptable slippage percentage.

Selling Settings

  • AUTO_SELL: Set to true for automatic token selling. If you prefer manual sales, disable this option.
  • MAX_SELL_RETRIES: The maximum attempts to sell a token.
  • AUTO_SELL_DELAY: Delay in milliseconds before automatically selling a token.
  • PRICE_CHECK_INTERVAL: Time interval in milliseconds for evaluating profit-taking and stop-loss conditions.
  • PRICE_CHECK_DURATION: Duration in milliseconds to wait for the fulfillment of stop-loss/take-profit conditions.
  • TAKE_PROFIT: The profit percentage at which to sell.
  • STOP_LOSS: The loss percentage at which to halt losses.
  • SELL_SLIPPAGE: The acceptable slippage percentage during selling.

Snipe List

  • USE_SNIPE_LIST: Set to true to restrict purchases to tokens in snipe-list.txt. The pool must not exist before the bot initiates.
  • SNIPE_LIST_REFRESH_INTERVAL: Time interval in milliseconds to refresh the snipe list.

Note: If the snipe list is active, the filters below will be disabled.

Filters

  • FILTER_CHECK_INTERVAL: Time interval in milliseconds for comparing pools against the defined filters.
  • FILTER_CHECK_DURATION: Duration in milliseconds for wait times to match filters.
  • CONSECUTIVE_FILTER_MATCHES: Specifies how many successive filter matches are needed.
  • CHECK_IF_MUTABLE: Enables purchases only if token metadata is immutable.
  • CHECK_IF_SOCIALS: Enables purchases only if the token has at least one social presence.
  • CHECK_IF_MINT_IS_RENOUNCED: Enables purchases only for renounced mints.
  • CHECK_IF_FREEZABLE: Enables buying only if tokens are not subject to freezing.
  • CHECK_IF_BURNED: Enables purchasing tokens only if their liquidity pool has been burned.
  • MIN_POOL_SIZE: Minimum pool size required for purchasing (set to 0 to disable).
  • MAX_POOL_SIZE: Maximum pool size allowed for purchasing (set to 0 to disable).

Warp Transactions (Beta)

If you encounter frequent transaction failures or delays, consider utilizing warp for executing transactions. Warp is a hosted service that processes transactions through third-party integrations.

Security Considerations

Using warp does not expose your wallet's private key; the transaction payload is securely managed. Fees are signed on your device, and each request is processed without retaining your transaction data or private key.

Note: Warp transactions are disabled by default.

Fees

When using warp, transaction fees are divided between the warp developers and third-party providers. If a transaction fails, no charges will be deducted from your account.

Common Issues

Should you face issues not detailed here, please create a new issue in the repository. For additional debugging, set the LOG_LEVEL to debug.

Unsupported RPC Node

If you encounter an error message indicating your RPC node lacks support for required methods, you will need to change your RPC node, with options such as Helius or Quicknode being suitable.

No Token Account Error

If a message indicates there is no USDC or WSOL token account found in your wallet, you should visit a decentralized exchange (DEX) and swap some SOL for USDC/WSOL. After the swap, you should see the updated balance in your wallet.

spacer.png

By following these guidelines, you can successfully set up and operate the Solana Trading Bot, enhancing your trading efficiency on the Solana network.

 

Spoiler

Author - warp.id

 

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...