Author

Topic: bitcoin-cli sendtoaddress showing invalid bitcoin address error-5 (Read 608 times)

HCP
legendary
Activity: 2086
Merit: 4361
my address is 17RTTUAiiPqUTKtEggJPec8RxLMi2n9EZ9
Are you sure about that? That is the bitcointalk forums donation address:

Donate to the Bitcoin Forum

Donation address: 17RTTUAiiPqUTKtEggJPec8RxLMi2n9EZ9

What exactly are you trying to do? Huh
legendary
Activity: 3472
Merit: 4801
- snip -
although i have many bitcoin.
- snip -

Are you sure?  How do you know?
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
Thanks for your reply.the problem has gone.but now new problem arise. it is showing insufficient fund, error code-6.although i have many bitcoin.bitcoin core wallet is middle of the synchronization.is this the problem?
Possibly, Bitcoin Core will only recognise coins received when it is synchronized beyond the date which the transaction was sent.

Are you sending to or from 17RTTUAiiPqUTKtEggJPec8RxLMi2n9EZ9? If your address is 17RTTUAiiPqUTKtEggJPec8RxLMi2n9EZ9, you likely don't have any funds.
newbie
Activity: 2
Merit: 0
Thanks for your reply.the problem has gone.but now new problem arise. it is showing insufficient fund, error code-6.although i have many bitcoin.bitcoin core wallet is middle of the synchronization.is this the problem?
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
You are passing a -testnet argument to Bitcoin-cli. Testnet addresses doesn't start with 1, it starts with m.

If you are trying to send Bitcoins on mainnet, your command should be
Code:
bitcoin-cli sendtoaddress 17RTTUAiiPqUTKtEggJPec8RxLMi2n9EZ9 2
.

You probably do not own 17RTTUAiiPqUTKtEggJPec8RxLMi2n9EZ9 so it will not work.
newbie
Activity: 2
Merit: 0
i want to send bitcoin to my wallet but while sending by raw transaction it is showing invalid bitcoin address  error-5  and my bitcoin core wallet not synced it.

command using:
bitcoin-cli -testnet sendtoaddress NEW_ADDRESS 2.0
also, i am trying

bitcoin-cli -regtest createrawtransaction '''
    [
      {
        "txid": "'$UTXO_TXID'",
        "vout": '$UTXO_VOUT'
      }
    ]
    ''' '''
    {
      "'$NEW_ADDRESS'": 2.00000000
    }'''



I checked the address in blockchain it's showing valid address

my address is 17RTTUAiiPqUTKtEggJPec8RxLMi2n9EZ9
Jump to: