Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
I'm trying to generate a public key associated with a wallet. How would I do this using the wallet rpc commands, I couldn't find a command in reference docs which does this.
Thanks.
I expect the pair
getnewaddress ( "label" "address_type" ) getaddressinfo "address"
will generate a new pubkey and tell you what it is
The same commands are supported by bitcoin-qt console so I can easily demonstrate it thusly ...
getnewaddress bc1q************************************5e getaddressinfo bc1q************************************5e { "address": "bc1q************************************5e", [...] "pubkey": "03**************************************************************4d", [...] }
![Get BONUS $200 for FREE! Get BONUS $200 for FREE!](/img/socialgood3.jpg)
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments