Skip to content

Add in getAccountHistory method

Dwayne Charrington requested to merge feature/get-account-history into master

Users accustomed to using the JS client might be familiar with the getAccountHistory method which allows you to query the API for account history. It is quite useful when you want to get the voting history or transfers of a user. I detail how users can make the call manually using the .call method and passing in the appropriate JSON-RPC method name and parameters, this strongly typed convenience method saves a lot of hassle.

Furthermore, I noticed the getTransaction method didn't have its return type provided on the function definition, so I added that whilst I made this change.

I've tested the new method in; Chrome, Firefox, Edge, IE11 and Safari.

Merge request reports