loomchain icon indicating copy to clipboard operation
loomchain copied to clipboard

Add DPOS rpc endpoints

Open pathornteng opened this issue 5 years ago • 0 comments

This PR implement 2 rpc endpoints, dpos_state and dpos_list_all_delegations

These endpoints can be called to get dpos state and all delegation at a particular height

http://localhost:46658/query/dpos_state?height=100
http://localhost:46658/query/dpos_list_all_delegations?height=100
  • [ ] I added unit tests for any code that added
  • [ ] I updated the CHANGELOG.md
  • [x] All IP is original and not copied from another source
  • [x] I assign all copyright to Loom Network for the code in the pull request

pathornteng avatar Nov 26 '19 12:11 pathornteng