Budget a TRON Energy delegation using the delegatable stake principal

An account can have a high Energy limit while only a fraction of its staked principal can be delegated. The sizing endpoint returns an amount in sun.

Query the correct stake category

Replace the placeholder with the owner’s Base58 address. Type 1 selects Energy and type 0 selects Bandwidth. Inspect max_size in the response. An empty object can represent a zero amount when optional protobuf fields are omitted. Check that the request itself succeeded.

POST /wallet/getcandelegatedmaxsize
Content-Type: application/json

{"owner_address":"BASE58_OWNER","type":1,"visible":true}

Keep principal and resource units separate

A max_size of 25000000 permits up to 25 TRX of stake principal at that observation. It does not promise 25 million units of Energy. Estimate the resource share separately from network totals and recheck the delegatable amount immediately before construction if other workers are delegating from the same account.

Sources