Author Topic: [API] no method with name 'get_asset'  (Read 1959 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
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

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 ..

Offline monsterer

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?
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline svk

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.
Worker: dev.bitsharesblocks

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc

Offline monsterer

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?
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Connect to cli_wallet or do

get_object 1.3.x

With x being the asset id

Offline monsterer

Got a websocket connection to a witness node, and I can call some API functions, but I'm getting

Code: [Select]
no method with name 'get_asset'
When trying to call get_asset, and similar for most other API calls. What am I doing wrong?
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads