Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetCanDelegatedMaxSize not included #115

Open
clipcow opened this issue Nov 8, 2023 · 2 comments
Open

GetCanDelegatedMaxSize not included #115

clipcow opened this issue Nov 8, 2023 · 2 comments

Comments

@clipcow
Copy link

clipcow commented Nov 8, 2023

https://developers.tron.network/reference/getcandelegatedmaxsize

To query the amount of delegatable resources share of the specified resource type for an address.
Returns the amount of energy or bandwith that CAN be deligated from asked address.
Please add if possible

@MrNaif2018
Copy link
Collaborator

Please don't spam and aggregate all requests into one issue. Also see my comment to one of them

@MrNaif2018
Copy link
Collaborator

When querying the delegatable energy share of an account, if the available energy share in the account is 0, this API returns {}
When querying the delegatable bandwidth share of an account, if the bandwidth obtained by staking in the account is not enough to pay for the bandwidth consumed by a resource delegation transaction itself, this API also returns {}

I wonder if we should return 0 in such cases

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

No branches or pull requests

2 participants