BitShares Forum

Main => Technical Support => Topic started by: JA on October 20, 2015, 06:21:19 pm

Title: curl bitshares 2 api help
Post by: JA on October 20, 2015, 06:21:19 pm
I have a hard time understanding how the bitshares 2 api works.
For example i want to get the transaction history of an account.
in bts 1:
{"method": "wallet_account_transaction_history", "params": ["myaccount"], "id": "0"}

how does it work in bts 2.0 with get_account_history?
Title: Re: curl bitshares 2 api help
Post by: maqifrnswa on October 20, 2015, 06:53:55 pm
I have a hard time understanding how the bitshares 2 api works.
For example i want to get the transaction history of an account.
in bts 1:
{"method": "wallet_account_transaction_history", "params": ["myaccount"], "id": "0"}

how does it work in bts 2.0 with get_account_history?

you need the cli_wallet api. so the wallet connects to the witness node, and the curl request will go to the wallet port

http://python-graphenelib.readthedocs.org/en/latest/graphene-api.html