Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: david739 on January 03, 2022, 04:56:27 PM



Title: bitcoin core ubuntu server
Post by: david739 on January 03, 2022, 04:56:27 PM

 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





Title: Re: bitcoin core ubuntu server
Post by: 100knot2dae on January 04, 2022, 12:06:34 AM

 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