Skip to content

Please add system/account method#36

Open
base1217 wants to merge 3 commits into
SimplyStaking:masterfrom
base1217:master
Open

Please add system/account method#36
base1217 wants to merge 3 commits into
SimplyStaking:masterfrom
base1217:master

Conversation

@base1217

Copy link
Copy Markdown

Getting account info is now available, especially free tokens amount. VERY VERY useful thing, at least for us:)

json responce output:

{"result":{"nonce":1230,"consumers":0,"providers":1,"sufficients":0,"data":{"free":10661838641636,"reserved":0,"miscFrozen":0,"feeFrozen":0}}}

@dillu24

dillu24 commented Aug 30, 2021

Copy link
Copy Markdown
Collaborator

Hi @base1217 , thanks a lot for your contribution! We will give it a look hopefully soon.

@dillu24

dillu24 commented Sep 7, 2021

Copy link
Copy Markdown
Collaborator

Hi @base1217 .. thanks for your patience, we are going to look at your PR now.

@dillu24

dillu24 commented Sep 7, 2021

Copy link
Copy Markdown
Collaborator

Please add this to the unreleased section of doc/CHANGELOG.MD

  • Added system/account. This returns the full information for a particular account with the specified account_id.

@dillu24 dillu24 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Work and thanks for your contribution! We only require 3 changes:

  1. To add the following line to the doc/CHANGELOG.md file inside the unreleased section:
  • Added system/account. This returns the full information for a particular account with the specified account_id.
  1. To fix an error message as indicated in a thread above.
  2. Add a usage example in demos/api_demo.py

Comment thread src/interface/substrate_query.js Outdated

@DanielMagro97 DanielMagro97 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor change in wording requested, but other than that and what Dylan has mentioned, looks good to me, thanks!

Comment thread doc/DESIGN_AND_FEATURES.md Outdated
Comment thread demos/api_demo.py
print('/api/query/system/account')
r = requests.get(url=API_ENDPOINT + '/api/query/system/account',
params={'websocket': websocket,
'account_address': 'HsGrsqL4nCBCW2ovc4kKG98c4mFp99BHRFkBSRZW1ETDe3U'})

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be account_id?

@dillu24

dillu24 commented Oct 13, 2021

Copy link
Copy Markdown
Collaborator

@base1217 - Final change requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants