BitShares Forum

Main => Technical Support => Topic started by: XsharesO on November 21, 2014, 02:34:26 pm

Title: API
Post by: XsharesO on November 21, 2014, 02:34:26 pm
Can I connect to some bitshares api? When I run bitshares, does it open some port I can send RPC to?
Title: Re: API
Post by: xeroc on November 21, 2014, 02:41:43 pm
Can I connect to some bitshares api? When I run bitshares, does it open some port I can send RPC to?
not automatically .. If you run the CLI version there is a --rpcport --rpcuser --rpcpasswd which you can use .. in the gui you may be able to enable the RPC via some command in the console too ..

Take a look at this
https://github.com/xeroc/pytshares/blob/master/btsrpcapi.py
to see who you can work with it in python
Title: Re: API
Post by: bytemaster on November 21, 2014, 02:51:20 pm
The GUI is completely powered by a local API but the PORT, USER, and PASSWORD are randomly generated every time you launch the client.