Insufficient funds from "solana transfer" command

Hello everyone, I have 23 SOL on my wallet and I can not transfer 0.2 SOL to Binance. Here are the command line statements, where <MY_WALLET_PUBKEY> is in place of my actual cold wallet public key:

$ solana balance <MY_WALLET_PUBKEY>
23.01046805 SOL

I store my credentials in a file:

$ solana-keygen recover -o my_solana_wallet.json

Now I want to transfer 0.2 SOL, but I get an error:

$ solana transfer --from my_solana_wallet.json <BINANCE_WALLET> 0.2 --allow-unfunded-recipient --url https://api.devnet.solana.com --fee-payer my_solana_wallet.json
Error: Account <COLD_WALLET_PUBKEY> has insufficient funds for spend (0.2 SOL) + fee (0.000005 SOL)

What is wrong? Do you have any idea? Thank you, Marco

Solved. The proper command is:

$ solana transfer --from my_solana_wallet.json <BINANCE_WALLET> 0.2 --allow-unfunded-recipient --fee-payer my_solana_wallet.json
1 Like