Does the bitcoin-core client have any RPC API to query the key pool? I have certain bitcoin address which I want to check if the wallet has access to (either via private key or via HD-private key derivation).

Is there a way to programmatically check this? I was going to use signmessage but that would need me to unlock the wallet with the passphrase first.

1 Answer 1


Use validateaddress [address].

It will give you all information about that address, including whether it has the private key (it will "ismine" : true and "iswatchonly" : false.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.