Giter Club home page Giter Club logo

jawikas / sonictestnet-bot Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 35 KB

This repository contains a script for automating transactions on the Sonic testnet on Solana. The bot generates random addresses and sends SOL from configured accounts to these addresses.

Home Page: https://odyssey.sonic.game/?join=WSdeGi

JavaScript 100.00%
bot crypto sonic sonic-bot testnet testnet-bot solana-sonic-testnet solana-testnet sonic-solana sonic-testnet

sonictestnet-bot's Introduction

image

Sonic Testnet Automated (Transactions) Bot

This repository contains a script for automating transactions on the Sonic testnet on Solana. The bot generates random addresses and sends SOL from configured accounts to these addresses.

Website : https://odyssey.sonic.game/?join=WSdeGi

Buy me Coffee โ˜•

0x705C71fc031B378586695c8f888231e9d24381b4

Features

  • Multi accounts executions
  • Run the selected account only
  • Generate random addresses
  • Send SOL transactions to generated addresses
  • Configurable delay and transaction amounts
  • Track successful and failed transactions

Prerequisites

  • Node.js (v12 or higher)
  • npm (v6 or higher)

Installation

  1. Clone the repository:

    git clone https://github.com/jawikas/sonictestnet-bot.git
    cd sonictestnet-bot

Install the required npm modules:

npm install

Create a .env file in the root directory and add your seed phrases :

SEED_PHRASES='[
{"name": "nameAccount1", "phrase": "phraseAccount1"},
{"name": "nameAccount2", "phrase": "phraseAccount2"}
]'

Create a config.json file in the root directory and add your configuration:

{
"minAmount": 0.00105,
"maxAmount": 0.00135,
"minDelay": 7000,
"maxDelay": 13000,
"delayEachAccount": 1500
}
  • minAmount : minimum amount to send in sol

  • maxAmount : maximum amount to send in sol

  • minDelay : minimum delay for each transactions

  • maxDelay : maximum delay for each transactions

  • delayEachAccount : delay for each account to execute transactions

    Note : make sure not to lower the 'minAmount' to an amount lower than '0.001'

Usage

Run the script:

node index.js
Follow the prompts to execute transactions:

Choose whether to execute transactions for all accounts or select specific accounts Enter the number of transactions to execute for each account

Functions

sendSol(fromKeypair, toPublicKey, amount, transactionIndex, accountName)
- Sends SOL from fromKeypair to toPublicKey
- Logs the transaction status

generateRandomAddresses(count)
- Generates random Solana public addresses

getKeypairFromSeed(seedPhrase)
- Derives a keypair from a seed phrase

getKeypairFromPrivateKey(privateKey)
- Gets a keypair from a private key

parseEnvArray(envVar, defaultValue)
- Parses environment variables as JSON arrays

getSolanaBalance(fromKeypair)
- Retrieves the SOL balance of a keypair

delay(ms)
- Delays execution for a specified number of milliseconds

listAccounts()
- Lists available accounts

main()
- Main function to execute the script

executeTransactions(selectedAccount, numTransactions, config)
- Executes transactions for a selected account

Modules to Install

The script requires the following npm modules:

  • @solana/web3.js
  • bip39
  • ed25519-hd-key
  • bs58
  • prompt
  • dotenv

Install these modules using:

npm install @solana/web3.js bip39 ed25519-hd-key bs58 prompt dotenv

License

This project is licensed under the NONE License.

Contact

If you have any questions or suggestions, please feel free to contact at [ https://t.me/itsjaw_real ].

sonictestnet-bot's People

Contributors

jawikas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sonictestnet-bot's Issues

Question

I know how to get the phrase but where to get account name?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.