GetCanDelegatedMaxSize
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 addresstype
- Int32 - Required - Resource type, 0 - Bandwidth, 1 - Energyvisible
- 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.
// Result
{}
curl https://mainnet.tron.validationcloud.io/v1/<YOUR_API_KEY_HERE>/walletsolidity/getcandelegatedmaxsize \
-X POST \
-H "Content-Type: application/json" \
-d '
{
"owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
"type": 0,
"visible": true
}
'
Last updated
Was this helpful?