How would I get the Public address for the new wallet I created?
Bitcoin Core is an "HD" Wallet (hierarchal determinisic) wallet... it doesn't have "a" Public address... it has
many public addresses (theoretically an unlimited number).
Do you specifically need the "first" address? or will any address do?
If you have used the
getnewaddress command ONCE, it should return the first address from the keypool, which should be the address at hdkeypath=m/0'/0'/0' NOTE: if you use it again, it'll return the m/0'/0'/1' address, then m/0'/0'/2' etc
If you didn't explicitly provide a "label" when using the
getnewaddress... you can get it to display by using
getaddressbylabel command and passing an empty string:
It should return something like:
{
"bc1_your_address_here": {
"purpose": "receive"
}
}
Note... if you have generated multiple addresses, there is no guarantee that the
getaddressbylabel command will return them "in order".
tried dumpwallet but the text outputted is not showing it (hdkeypath=m/0'/0'/0')
Did you search for the m/0'/0'/0' in the output text using
dumpwallet... the address (and all 1000 keypool addresses) should be displayed in the dump file?