Author

Topic: bitcoin core ubuntu server (Read 129 times)

member
Activity: 100
Merit: 29
January 03, 2022, 07:06:34 PM
#2

 hi i need to create a btc wallet in another form but i haven't found any command information except this one

./bitcoin-cli getnewaddress

bc1qfe8y4q9lcmqakem98v5uvezs97gmhd820csvpg

but I need it in this form 3KcvE7hcqTAGyEbZxtn5swfqbr7TZVe7WT

See the RPC docs here: https://bitcoincore.org/en/doc/0.21.0/rpc/wallet/getnewaddress/

What you want is address_type "p2sh-segwit":

./bitcoin-cli getnewaddress -addresstype p2sh-segwit
newbie
Activity: 11
Merit: 1
January 03, 2022, 11:56:27 AM
#1

 hi i need to create a btc wallet in another form but i haven't found any command information except this one

./bitcoin-cli getnewaddress

bc1qfe8y4q9lcmqakem98v5uvezs97gmhd820csvpg

but I need it in this form 3KcvE7hcqTAGyEbZxtn5swfqbr7TZVe7WT



Jump to: