HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

GetCanDelegatedMaxSize

In Stake2.0, query the amount of delegatable resources share of the specified resource type for an address, unit is sun.

Log in to see full request history

Returns
max_size - int64 : the amount of delegatable resource share, unit is sun.

  • 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 {}

Note: If the delegating transaction has a memo, it would consume more bandwidth, therefore the actual delegatable share would be less than the return of this API.

Body Params
string
Defaults to TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g

Owner address, default hexString

int32
Defaults to 0

resource type, 0 is bandwidth, 1 is energy

boolean
Defaults to true

Optional. Specifies whether the address is in Base58 format (default: false). Note: Set to true in this example for demonstration purposes.

Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json