Skip to main content
Version: 6.0.0

getCanDelegatedMaxSize

Query the maximum value of an account's delegated resources (BANDWIDTH, ENERGY) that can be operated on DelegateResource under the V2 interface. (v5.1.0 new interface)

Usage​

tronWeb.trx.getCanDelegatedMaxSize(address, resource,options);

Parameters​

ParametersParameter DescriptionData Type
addressaccount address (base58 or hex)String
resourceresource type, optional BANDWIDTH or ENERGYString
optionsoptional fieldsObject

Return​

Object

Example​

> const { max_size } = await tronWeb.trx.getCanDelegatedMaxSize('TMVQGm1qAQYVdetCeGRRkTWYYrLXuHK2HC','BANDWIDTH');
{
"max_size": 100000000
}