Open tcharding opened 4 months ago
We added this method https://docs.rs/jsonrpc/latest/jsonrpc/http/simple_http/struct.SimpleHttpTransport.html#method.set_url_path specifically for this usecase.
We could add the same method to the minreq transport. But we can't add it generically because not every transport has a "URL".
Oh cool, I missed that one (obviously). Yeah it would be nice to have that guy inherently on all the transports.
bitcoind
adds the wallet to the URL for a bunch of API calls (eggetnewaddress
) for example:http://localhost:1234/wallet/<wallet-name>
However it is not possible to modify a
Client
's url (insideTransport
), it would be sweet if when implementing an RPC client usingjsonrpc
one could do something like