BitShares Forum

Main => Technical Support => Topic started by: monsterer on October 19, 2015, 07:11:36 PM

Title: [API] no method with name 'get_asset'
Post by: monsterer on October 19, 2015, 07:11:36 PM
Got a websocket connection to a witness node, and I can call some API functions, but I'm getting

no method with name 'get_asset'

When trying to call get_asset, and similar for most other API calls. What am I doing wrong?
Title: Re: [API] no method with name 'get_asset'
Post by: xeroc on October 19, 2015, 07:13:36 PM
Connect to cli_wallet or do

get_object 1.3.x

With x being the asset id
Title: Re: [API] no method with name 'get_asset'
Post by: monsterer on October 19, 2015, 09:02:48 PM
Quote from: xeroc on October 19, 2015, 07:13:36 PM
Connect to cli_wallet or do

get_object 1.3.x

With x being the asset id

Ahhh, ok - so the commands are different between the different clients?
Title: Re: [API] no method with name 'get_asset'
Post by: xeroc on October 20, 2015, 05:47:24 AM
Quote from: monsterer on October 19, 2015, 09:02:48 PM
Ahhh, ok - so the commands are different between the different clients?
Yes
http://docs.bitshares.eu/api/index.html
Title: Re: [API] no method with name 'get_asset'
Post by: svk on October 20, 2015, 06:55:54 AM
Quote from: xeroc on October 20, 2015, 05:47:24 AM
Quote from: monsterer on October 19, 2015, 09:02:48 PM
Ahhh, ok - so the commands are different between the different clients?
Yes
http://docs.bitshares.eu/api/index.html

Those docs are amazing, but they seem to be slightly out of date or just missing some calls. I couldn't find get_market_history in there for example.
Title: Re: [API] no method with name 'get_asset'
Post by: monsterer on October 20, 2015, 07:04:50 AM
Quote from: xeroc on October 20, 2015, 05:47:24 AM
Quote from: monsterer on October 19, 2015, 09:02:48 PM
Ahhh, ok - so the commands are different between the different clients?
Yes
http://docs.bitshares.eu/api/index.html

Any chance you could update the doc to show which commands are available to which client?
Title: Re: [API] no method with name 'get_asset'
Post by: xeroc on October 20, 2015, 07:12:16 AM
Quote from: monsterer on October 20, 2015, 07:04:50 AM
Any chance you could update the doc to show which commands are available to which client?
I actually tried to do that ..

CLI_wallet:
http://docs.bitshares.eu/api/#cli-wallet-api

Full Node/Witness Node
http://docs.bitshares.eu/api/#full-node-apis

Quote from: svk on October 20, 2015, 06:55:54 AM
Those docs are amazing, but they seem to be slightly out of date or just missing some calls. I couldn't find get_market_history in there for example.
The API docs are mostly automatically generated ... I will update the current graphene doxygen and deploy the new version
get_market_history is now there, but the source code does not show much comments about the call ..