<p>You can use the <code>$()</code> syntax to execute another command and have it return its results:</p>

<p><code>validateaddress $(getaccountaddress "")</code></p>

<p>Here's the docs: <a href="http://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html#Command-Substitution" rel="nofollow">http://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html#Command-Substitution</a></p>

CC BY-SA 3.0
2014-05-03T17:22:14.660Z
2014-05-03T17:31:56.007Z
2014-05-03T17:31:56.007Z
Luca Matteis
<p>Is there a way to chain calls in Bitcoin core client console window like this</p>

<pre><code>validateaddress (getaccountaddress "")
</code></pre>

<p>instead of </p>

<pre><code>getaccountaddress ""
validateaddress _address from previous call_
</code></pre>

CC BY-SA 3.0
2014-05-02T23:23:54.397Z
I'm pretty sure there is not. The API is quite simple.
Nate Eldredge
<client>
Is there a way to chain calls in Bitcoin core console?
Farghaly
# Is there a way to chain calls in Bitcoin core console?

(Asked by: username_0 on 2014-05-02)

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_

**Tags:** client

> **Comments:**
> **username_1**: I'm pretty sure there is not. The API is quite simple.  

---

## 1 answers

### Answer by username_2 on 2014-05-03. Score: -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>


---

