gcash / bchwallet

A secure bitcoin cash wallet daemon written in Go (golang)
ISC License
43 stars 29 forks source link

Multi wallet json rpc #49

Closed luche79 closed 5 years ago

luche79 commented 5 years ago

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

cpacia commented 5 years ago

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.

cacaosteve commented 4 years ago

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.