0

Is there a way to chain calls in Bitcoin core client console window like this

validateaddress (getaccountaddress "")

instead of

getaccountaddress ""
validateaddress _address from previous call_
2
  • I'm pretty sure there is not. The API is quite simple. May 2 '14 at 23:23
  • Chaining is not really a good practice, if anything fails in between the commands you have zero control over the exception handling. May 3 '14 at 17:54
-1

You can use the $() syntax to execute another command and have it return its results:

validateaddress $(getaccountaddress "")

Here's the docs: http://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html#Command-Substitution

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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