Bitcoin Forum
December 13, 2024, 09:20:15 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin core ubuntu server  (Read 130 times)
david739 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 1


View Profile
January 03, 2022, 04:56:27 PM
 #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



100knot2dae
Member
**
Offline Offline

Activity: 100
Merit: 29


View Profile
January 04, 2022, 12:06:34 AM
 #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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!