How to reference different wallets with curl JSONRPC requests Bitcoin core
This is the command I use - the http address is the address of the docker container that the Bitcoin daemon is running in
curl --user johnsmith --data-binary '{&quot;jsonrpc&quot;: &quot;1.0&quot;, &quot;id&quot;:&quot;curltest&quot;, &quot;method&quot;: &quot;getbalance&quot;, &quot;params&quot;: [&quot;*&quot;, 6] }' -H 'content-type: text/plain;' http://10.0.0.1:18332/