How to call get_account_history by RPC

Started by Btc38, November 03, 2015, 09:04:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

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

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

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

Btc38

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