People here are great but still the question was not answered. For instance, I created a new wallet (p2tr) and an address was also created, iirc. However, I only created this address for the experience of having a p2tr address. I never used it. Now, I woul like to try something with this address and I need to “get it out” of the wallet. I didn’t save the address anywhere. So, the question remains. How do we get the address out of a wallet? I don’t need nor want to create new addresses. I just need to get the one I created some time ago!
Thank you
Psy
Edited:
A possibility to get the addresses out is:
Get the wallets from your Bitcoin node with the follwoing command:
bitcoin-cli listwallets
Then, get the labels from the wallet you’re interested in, in case you have more than one wallet in your node, with the following command:
bitcoin-cli --rpcwallet= listlabels
Finally get the addresses out from the labels of interest, if more than one:
bitcoin-cli --rpcwallet= getaddressesbylabel