<p>To query a specific wallet, set the URL to be</p>

<pre><code>http://127.0.0.1:8332/wallet/&lt;wallet_name&gt;
</code></pre>

CC BY-SA 4.0
2018-12-15T15:04:56.330Z
2018-12-15T15:04:56.330Z
arubi
<p>I want to set a wallet as default wallet in the commands that run with <code>json-rpc</code> calls. the <code>-rpcwallet=blah</code> sets the <code>blah</code> wallet as the wallet which command will run on it; how can I simulate the similar thing with sending a JSON-RPC request? </p>

<p>When I sending the request, for example <code>curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/</code>, but it run on default wallet. how can I pass the wallet as a parameter in my request?</p>

<bitcoind><json-rpc><bitcoin-cli>
Passing a wallet to rpcwallet in bitcoind JSON RPC
Vahid Kharazi
# Passing a wallet to rpcwallet in bitcoind JSON RPC

(Asked by: username_0 on 2018-12-15)

I want to set a wallet as default wallet in the commands that run with `json-rpc` calls. the `-rpcwallet=blah` sets the `blah` wallet as the wallet which command will run on it; how can I simulate the similar thing with sending a JSON-RPC request?

When I sending the request, for example `curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwalletinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/`, but it run on default wallet. how can I pass the wallet as a parameter in my request?

**Tags:** bitcoind, json-rpc, bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2018-12-15. Score: 4 | Accepted answer

To query a specific wallet, set the URL to be
http://127.0.0.1:8332/wallet/


---

