Makes a JSON-RPC call to a Bitcoin node
This is our main workhorse for talking to bitcoind. It handles authentication and formats requests in the way bitcoind expects them.
The URL of the Bitcoin node
Basic auth credentials
The RPC method to call
Parameters for the RPC method (optional)
Promise resolving to the RPC response
Makes a JSON-RPC call to a Bitcoin node
This is our main workhorse for talking to bitcoind. It handles authentication and formats requests in the way bitcoind expects them.