andelf / tronpy

TRON Python Client Library.
MIT License
204 stars 96 forks source link

GetCanDelegatedMaxSize not included #115

Open clipcow opened 10 months ago

clipcow commented 10 months ago

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 commented 10 months ago

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

MrNaif2018 commented 6 months ago
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