BitShares Forum

Main => Technical Support => Topic started by: abovebeyond on August 26, 2016, 01:41:44 pm

Title: Connect to CLI Wallet over WS
Post by: abovebeyond on August 26, 2016, 01:41:44 pm
I know how to connect to the witness node with the WS API

I am trying to connect to the webwallet daemon, can I use WS API to connect to the webwallet Daemon, and if so, how do I format a call?

Title: Re: Connect to CLI Wallet over WS
Post by: xeroc on August 28, 2016, 04:33:14 pm
there is no such thing as a "web wallet daemon" .. what do you mean?
Title: Re: Connect to CLI Wallet over WS
Post by: abovebeyond on August 29, 2016, 08:18:37 am
You can run the cli wallet with "--daemon"

Title: Re: Connect to CLI Wallet over WS
Post by: xeroc on August 30, 2016, 01:52:29 pm
You can run the cli wallet with "--daemon"
Oh .. so  the cli-wallet ..

you can connect to it using RPC-JSON calls like this
Code: [Select]
curl --data '{"jsonrpc":"2.0","method":"call", "params":[0, "get_global_properties", [""]],"id":0}'  localhost:PORT
however, you need to open the port when calling the cli-wallet with parameter --rpc-http-endpoint=127.0.0.1:8092

more info on docs.bitshares.eu/api