Skip to main content
Stake2.0 API: query the amount of delegatable resources share of the specified resource type for an address, unit is sun (Confirmed state). This method will use 30 Compute Units.

Parameters

  • owner_address - String - Required - Owner address that triggers the contract. If visible=true, use base58check format, otherwise use hex format. For constant call you can use the all-zero address
  • type - Int32 - Required - Resource type, 0 - Bandwidth, 1 - Energy
  • visible - Boolean - Optional - Specifies whether the address is in Base58 format (default: false)

Returns

max_size - Int64 - The amount of delegatable resource share, unit is sun. 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.