added named to example

This commit is contained in:
Shannon Appelcline 2020-06-23 14:08:32 -10:00 committed by GitHub
parent 7572179860
commit be67dbb492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ You create a SegWit address the same way as any other address, with the `getnewa
If you need to create an address for someone who can't send to the newer Bech32 addresses, then use the `p2sh-segwit` addresstype:
```
$ bitcoin-cli getnewaddress -addresstype p2sh-segwit
$ bitcoin-cli -named getnewaddress address_type=p2sh-segwit
2N5h2r4karVqN7uFtpcn8xnA3t5cbpszgyN
```
Seeing an address with a "2" prefix means that you did it right.