Post
Topic
Board Bitcoin Technical Support
Merits 2 from 1 user
Trying to send bitcoin to c-lightning. Getting "Invalid Bitcoin Address"
by
jimbobway
on 23/01/2018, 01:00:18 UTC
⭐ Merited by DannyHamilton (2)
I'm following these instructions at https://github.com/ElementsProject/lightning to open a channel:

Quote
First you need to transfer some funds to lightningd so that it can open a channel:

# Returns an address

cli/lightning-cli newaddr

# Returns a transaction id
bitcoin-cli -testnet sendtoaddress



Lightning gives me a new address that starts with a "2", 2xxxxxxxxxxxxxxxxxxxxxxx.

I try to send bitcoins to this address using sendtoaddress but it says:

error code: -5
error message:
Invalid Bitcoin address


What am I doing wrong?