BitShares Forum

Main => Technical Support => Topic started by: Jansky on May 30, 2015, 10:26:39 pm

Title: RPC connection step by step
Post by: Jansky on May 30, 2015, 10:26:39 pm
I'm trying to connect to the RPC of a bitshares instance over localhost.  how is this done exactly?  My goal is to use some java code to download all the live bids and asks for all assets.
Title: Re: RPC connection step by step
Post by: kenCode on May 31, 2015, 08:36:38 am
Good morning Jansky (I'm in Munich), I have forwarded your question to a couple of the Devs as this one is over my head.
Hang in there, help is on the way.
Welcome to BitShares by the way! :)
Cheerz,
  -ken
Title: Re: RPC connection step by step
Post by: xeroc on May 31, 2015, 10:33:40 am
I cant tell you much about how its done in java .. but in my github repo theres is a python-bitsharesrpc project that does what you want via python ..

It shouldnt be too difficult to write rpc code for bitshares in java ... it is very similar to how it is done in bitcoin
Title: Re: RPC connection step by step
Post by: monsterer on May 31, 2015, 10:42:04 am
I'm trying to connect to the RPC of a bitshares instance over localhost.  how is this done exactly?  My goal is to use some java code to download all the live bids and asks for all assets.

Take a look at my c# RPC API, it's a very similar language to java, so should be easy to convert:

https://github.com/wildbunny/metaexchange/tree/master/BitsharesRpc