Author Topic: How to call get_account_history by RPC  (Read 1251 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
Depending on whether you interface with the cli or the witness node you may also need to take a llook this script: https://github.com/xeroc/python-graphenelib/blob/master/scripts/monitor-deposits/monitor.py#L28

This interfaces with the witness node but requires to subscribe to the history-api

Offline monsterer

Looks like you're using the wrong API - you need to connect to the CLI wallet to get account history. Either that or you haven't requested the history API from the cli wallet:

Take a look here: https://github.com/xeroc/python-graphenelib/blob/master/grapheneapi/graphenewsprotocol.py

Code: [Select]
self.wsexec([1,"history",[]], [
                             partial(self._set_api_id, "history"),
                            ])
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline Btc38

  • Full Member
  • ***
  • Posts: 67
    • View Profile
Our technical have met following problem when trying to call get_account_history by RPC.
Here is the detail.
Please help, thanks
BTC38: One step a footprint is true