Is there a way to chain calls in Bitcoin core console?

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_

Farghaly

Posted 2014-05-02T22:49:38.810

Reputation: 849

I'm pretty sure there is not. The API is quite simple.Nate Eldredge 2014-05-02T23:23:54.397

Chaining is not really a good practice, if anything fails in between the commands you have zero control over the exception handling.George Kimionis 2014-05-03T17:54:37.517

Answers

-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

Luca Matteis

Posted 2014-05-02T22:49:38.810

Reputation: 4 784