0

I try to transfer SOl by using this command solana transfer --from <KEYPAIR> <RECIPIENT_ACCOUNT_ADDRESS> <AMOUNT> --fee-payer <KEYPAIR> from account to my wallet but I get errors error: Invalid value for '--from <FROM_ADDRESS>': The system cannot find the file specified. (os error 2) and with error: Invalid value for '--fee-payer <KEYPAIR>': The system cannot find the file specified. (os error 2)

I try solana config set --keypair with path to my keypair.json but it doesn't help

1 Answer 1

1

It seems that the paths you are providing the command are wrong.

Check that your local paper wallet exists in the ~/.config/solana directory. From your question, it seems that you'd like to use keypair.json as your default signer(it usually defaults to id.json)

If the keypair file keypair.json does not exist

solana-keygen new -o ~/.config/solana/keypair.json

Set this as the default signer

solana config set -k ~/.config/solana/keypair.json
4
  • I know that I must have id.json but I haven't. Anyway command ask to use keypair.json and this file I have. But it doesn't work, am I do something wrong?
    – Jon McCane
    Commented Aug 21 at 20:01
  • Have you made sure that the paths are correct?
    – Jimii
    Commented Aug 22 at 6:38
  • Yeh. several times. My keypair.json looks like this DLuEogKAYPL5MiQAuBEtXJwqeM2J5w7ihsSK52ACG7Q3 .json
    – Jon McCane
    Commented Aug 22 at 7:39
  • Where is you keypair.jsin file saved and in which directory are you working in? Try generating a new key pair and using it
    – Jimii
    Commented Aug 22 at 8:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.