-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wallet #102
Comments
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. |
Never use your main wallet for bot!!!! @ImSan286 you can create a new wallet with you can use following nodejs script to convert the private key in 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> |
having same issue do i type this into command prompt? |
Create key.js file and put it in it |
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. |
Where to add or enter or provide our wallet address?It only asks for private keys.Help me out
The text was updated successfully, but these errors were encountered: