gcash/bchwallet

Multi wallet json rpc

Closed this issue · 2 comments

Hi,

is it possible to use bchd in multi wallet mode?

where do I find the complete list of api-json-rpc, both for bchd and bchdwallet?

where I find some examples on how to create wallets to create transactions, cost estimates etc.

Thanks in advance

Hi, there is a both a JSON-RPC api and a gRPC api. The JSON-RPC is primarily used by the bchctl command line utility. If you use that you will get a full list of available RPCs. Otherwise I think the code is the only place. For apps I would recommend the gRPC api. https://github.com/gcash/bchwallet/blob/master/rpc/api.proto

It does not currently do multiple wallets but I believe you can make multiple accounts inside the wallet.

I am interested in multiple wallets as well. The thing is accounts are deprecated on bitcoin-abc and maybe it's better practice to use multiple wallets. But if you want to use the only accounts method it looks like bchd can handle it.