Code Monkey home page Code Monkey logo

Comments (5)

FrederikSuijs avatar FrederikSuijs commented on August 21, 2024 2

The private key is unique to your wallet address. So once you provide it, it will be able to read your wallet. No need so seperatly mention your public wallet address.

Disclaimer: I would recommend to always be cautious and don't use your main wallet. Just create a new wallet and supply it with a mimimum amount of funds to test with.

from solana-trading-bot.

tuncatunc avatar tuncatunc commented on August 21, 2024

Never use your main wallet for bot!!!!

@ImSan286 you can create a new wallet with solana-keygen new --outfile bot-keypair.json
In json file bot-keypair.json, the private key is in array format like [1, 2, 3, ....]

you can use following nodejs script to convert the private key in bot-keypair.json

const fs = require('fs');
const {Keypair} = require('@solana/web3.js');
const bs58 = require('bs58');

// Replace with the path to your keypair.json file
const keypairPath = './bot-keypair.json';

const keypair = Keypair.fromSecretKey(new Uint8Array(JSON.parse(fs.readFileSync(keypairPath, 'utf-8'))));
console.log(bs58.encode(keypair.secretKey));
➜  solana-trading-bot git:(master) ✗ node keyToBase58.js 
<private key in base 58 encoding>

from solana-trading-bot.

Sully916 avatar Sully916 commented on August 21, 2024

having same issue do i type this into command prompt?

from solana-trading-bot.

tuncatunc avatar tuncatunc commented on August 21, 2024

Create key.js file and put it in it

from solana-trading-bot.

Sully916 avatar Sully916 commented on August 21, 2024

not allowed to create a new file in the Solana sniper bot directory. were is the javascript code pointing to. Sorry for all the questions im a newb when it comes to coding.

from solana-trading-bot.

Related Issues (20)

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.