bip39 icon indicating copy to clipboard operation
bip39 copied to clipboard

Added support for Solana (SOL)

Open daflh opened this issue 3 years ago • 12 comments
trafficstars

Uses 'm/44'/501'/0'/0' for the derivation path, same as in Sollet or Phantom wallet. Code based on used for Stellar. This should close #545

daflh avatar Jan 08 '22 06:01 daflh

Any idea why this hasn't been added? I am getting a ton of people on my YouTube channel asking for this.

cryptoiskey avatar Dec 07 '23 20:12 cryptoiskey

It generates the wrong keys for me (copied my Mnemonic phrase from Trust Wallet).

bpsib avatar Jan 01 '24 23:01 bpsib

I have just solved this by finding the Solana entry in index.js and removing /0 from the line var path = `m/${purpose}'/${coin}'/${index}'/0'`;.

This is because Trust Wallet uses the derivation path m/44'/501'/0' rather than m/44'/501'/0'/0'.

bpsib avatar Jan 02 '24 00:01 bpsib

You can also achieve your private key from solana-keygen cli itself, use this if your mnemonic phrase is from Trust Wallet: solana-keygen recover 'prompt://?key=0' -o my-tw-wallet.json

Arian8j2 avatar Jan 11 '24 13:01 Arian8j2

I'm reading this as I try to find a tool to test various seedphrases +passphrase to quickly find a specific Solana public key. Doing this through Ledger is inefficient for this purpose. Any assistance would be appreciated. Can offer $50 USDC/USDT for solution.

tavishg avatar Feb 03 '24 18:02 tavishg

I'm reading this as I try to find a tool to test various seedphrases +passphrase to quickly find a specific Solana public key. Doing this through Ledger is inefficient for this purpose. Any assistance would be appreciated. Can offer $50 USDC/USDT for solution.

I can arrange you a script and teach u how to use it. It would be the best way of finding this wallet. We can schedule via Google meet and I do with you.

Tomorrow I can publish here a public version of the code. You try it. And if you need me, then I would charge 100 bucks for 2 hours.

see u. And good luck @tavishg

thiagosouza avatar Feb 04 '24 01:02 thiagosouza

I'm reading this as I try to find a tool to test various seedphrases +passphrase to quickly find a specific Solana public key. Doing this through Ledger is inefficient for this purpose. Any assistance would be appreciated. Can offer $50 USDC/USDT for solution.

I can arrange you a script and teach u how to use it. It would be the best way of finding this wallet. We can schedule via Google meet and I do with you.

Tomorrow I can publish here a public version of the code. You try it. And if you need me, then I would charge 100 bucks for 2 hours.

see u. And good luck @tavishg

Sorry for the late reply, this would be very helpful. Happy to discuss further @thiagosouza

tavishg avatar Feb 06 '24 05:02 tavishg

hello! any help? https://solana.stackexchange.com/questions/11597/not-able-to-restore-old-sollet-wallet-24-seed

cryptoalert15 avatar Feb 29 '24 17:02 cryptoalert15

hello! any help? https://solana.stackexchange.com/questions/11597/not-able-to-restore-old-sollet-wallet-24-seed

I created this small script to check mnemonics combined with passwords so people and find wallets. Please take a look. https://github.com/thiagosouza/crypto-wallet/blob/feature/solana/solana.wallet.ts

thiagosouza avatar Mar 01 '24 12:03 thiagosouza

hello! any help? https://solana.stackexchange.com/questions/11597/not-able-to-restore-old-sollet-wallet-24-seed

I created this small script to check mnemonics combined with passwords so people and find wallets. Please take a look. https://github.com/thiagosouza/crypto-wallet/blob/feature/solana/solana.wallet.ts

hey sir! not sure how to run it(not familiar with ts things), i clone it - > then npm install , modified solana.wallet.ts vars mnemonic and passwords
if i run with node solana.wallet.ts i get that error:

(node:16551) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/home/Koln87Mu95jH/crypto-wallet-feature-solana/solana.wallet.ts:1
import { Keypair } from "@solana/web3.js";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:979:16)
    at Module._compile (internal/modules/cjs/loader.js:1027:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47

edit: i manage to run it with ts-node solana.wallet.ts , the script work as expected but still cannot find my addresses.. maybe i've saved wrong seed since beginning..

cryptoalert15 avatar Mar 02 '24 18:03 cryptoalert15

hello! any help? https://solana.stackexchange.com/questions/11597/not-able-to-restore-old-sollet-wallet-24-seed

I created this small script to check mnemonics combined with passwords so people and find wallets. Please take a look. https://github.com/thiagosouza/crypto-wallet/blob/feature/solana/solana.wallet.ts

you script cannot check this derivation path m/501'/0'/0/0 , 12 seed give me right addresses on sollet extension (https://github.com/project-serum/spl-token-wallet derivation m/501'/0'/0/0) , but the 24 seed give me new addresses.. check getAccountFromSeed from https://github.com/project-serum/spl-token-wallet/pull/42/files, not sure what https://github.com/armaniferrante did there https://github.com/project-serum/spl-token-wallet/pull/42 too many changes..

cryptoalert15 avatar Mar 05 '24 13:03 cryptoalert15