TRON getaccountresource Explained: Every Field on Real Responses
What each field of TRON getaccountresource means, checked on real TronGrid answers: free energy, EnergyLimit from staked TRX, recovery, getaccount fields.
- Category
- Guides
- Published
- Reading time
- 8 min

wallet/getaccountresource returns how much bandwidth and energy an address can use and the network totals those limits are computed from. Free energy is EnergyLimit - EnergyUsed, and EnergyLimit equals the TRX staked for energy behind the address (its own plus delegated to it) × TotalEnergyLimit / TotalEnergyWeight. As of Nov 21, 2026 that is about 9.66 energy per TRX a day, and fields equal to zero are simply left out of the answer.
Below, every field on two public addresses, the getaccount fields that explain the numbers, and the formulas checked to the unit.
The request and the two addresses we used
The getaccountresource reference takes one address, in Base58 with visible: true or in hex starting with 41 (format details in our TRON address validation guide). It is a read call: no transaction, no energy, no TRX.
We used two addresses that are public by origin, not private wallets:
- THPvaU…n5YC, the
origin_addressthatwallet/getcontractreturns for the USDT contract, in other words the address that deployed it; - TJvaAe…yD4M, a Super Representative that
wallet/listwitnesseslists with the URL poloniex.com.
Illustrative example that reads both calls and checks the formula; we ran it on Node.js 22.23.2:
// illustrative example: read an address's resources from TronGrid, Node.js 18+ built-ins only
const API = 'https://api.trongrid.io';
const post = async (path, body) =>
(await fetch(API + path, { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify(body) })).json();
const n = (v) => v ?? 0; // fields equal to 0 are left out of the JSON
async function resources(address) {
const r = await post('/wallet/getaccountresource', { address, visible: true });
const perTrx = r.TotalEnergyLimit / r.TotalEnergyWeight; // energy per staked TRX per day
console.log({
energyFree: n(r.EnergyLimit) - n(r.EnergyUsed),
energyLimit: n(r.EnergyLimit),
bandwidthFree: n(r.freeNetLimit) - n(r.freeNetUsed) + n(r.NetLimit) - n(r.NetUsed),
energyPerTrx: +perTrx.toFixed(3),
trxFor64285: Math.ceil(64285 / perTrx),
});
await new Promise((ok) => setTimeout(ok, 5000)); // keep public API calls apart
const a = await post('/wallet/getaccount', { address, visible: true });
const ar = a.account_resource || {};
const sun = n(ar.acquired_delegated_frozenV2_balance_for_energy) + n(ar.acquired_delegated_frozen_balance_for_energy);
const own = (a.frozenV2 || []).filter((f) => f.type === 'ENERGY').reduce((s, f) => s + n(f.amount), 0);
// energy you delegated out has already left frozenV2, so it is not subtracted here
const trx = (sun + own) / 1e6;
console.log({ trxBehindEnergy: trx, expectedLimit: Math.floor(trx * perTrx) });
}
resources(process.argv[2]).catch(console.error);
For the Super Representative it printed energyLimit: 428214, trxBehindEnergy: 44339, expectedLimit: 428214, energyPerTrx: 9.658. For the deployer: energyFree: 0, energyLimit: 9339, expectedLimit: 9339.
Field by field
Values from the raw TronGrid answers, as of Nov 21, 2026. “absent” means the node did not print the field, so it is 0.
| Field | What it is | Deployer THPvaU…n5YC | SR TJvaAe…yD4M |
|---|---|---|---|
freeNetLimit |
free bandwidth per day, same for every address | 600 | 600 |
freeNetUsed |
free bandwidth used, not yet recovered | absent | absent |
NetLimit |
bandwidth per day from TRX staked for bandwidth, own or delegated in | absent | 34,391 |
NetUsed |
part of NetLimit used, not yet recovered |
absent | absent |
EnergyLimit |
energy per day from TRX staked for energy, own or delegated in | 9,339 | 428,220 |
EnergyUsed |
part of EnergyLimit used, not yet recovered |
9,339 | absent |
tronPowerLimit, tronPowerUsed |
votes the address holds and has cast | absent | absent |
TotalNetLimit |
bandwidth the network hands out per day | 43,200,000,000 | same |
TotalNetWeight |
TRX staked for bandwidth by everyone | 26,610,933,907 | same |
TotalEnergyLimit |
energy the network hands out per day | 180,000,000,000 | same |
TotalEnergyWeight |
TRX staked for energy by everyone | 18,637,619,932 | same |
assetNetUsed, assetNetLimit |
free bandwidth per TRC-10 token, keyed by token ID | 171 entries | 111 entries |
Two readings that are easy to miss:
- The deployer has no free energy at all.
EnergyUsedequalsEnergyLimit. USDT’sconsume_user_resource_percentis 30, so the contract’s origin covers up to 70% of each call’s energy while it has any, and its 9,339 a day are spent as soon as they recover: a USDT transfer receipt from Nov 20, 2026 showsorigin_energy_usage: 1. - Received energy gives no votes. The SR gets 428,220 energy a day from TRX that others staked and delegated to it, yet
tronPowerLimitis absent. Votes belong to whoever staked the TRX.
The reference also lists totalTronPowerWeight (network-wide votes); it did not appear in either answer.
Where the limits come from: getaccount
getaccountresource gives totals. The getaccount answer shows the TRX behind them. Amounts there are in SUN (1 TRX = 1,000,000 SUN).
getaccount field |
Meaning | Deployer | SR |
|---|---|---|---|
frozenV2 |
own stake per resource: {} is bandwidth, then ENERGY and TRON_POWER; amount is absent when zero |
three entries, no amounts | three entries, no amounts |
account_resource.acquired_delegated_frozenV2_balance_for_energy |
TRX others staked and delegated to this address for energy | 966,000,000 | 44,339,000,000 |
account_resource.acquired_delegated_frozen_balance_for_energy |
the same from old Stake 1.0 delegations | 1,000,000 | absent |
acquired_delegated_frozenV2_balance_for_bandwidth |
TRX delegated in for bandwidth (top level, not inside account_resource) |
absent | 21,069,162,190 |
acquired_delegated_frozen_balance_for_bandwidth |
the same from Stake 1.0 | absent | 116,000,000 |
account_resource.delegated_frozenV2_balance_for_energy |
TRX this address staked and delegated out for energy | absent | absent |
account_resource.energy_usage |
energy usage after recovery, same as EnergyUsed |
9,339 | absent |
account_resource.latest_consume_time_for_energy |
time of that consumption, ms | Nov 20, 2026 10:10:09 UTC | Nov 7, 2026 20:32:06 UTC |
account_resource.energy_window_size |
recovery window, see below | 19,470,554 | 28,800,000 |
Neither address stakes its own TRX, so all their energy and bandwidth is delegated in. When an address delegates its own stake out, java-tron moves that amount from frozenV2 to delegated_frozenV2_balance_for_energy (or ..._for_bandwidth) in the same step (DelegateResourceActuator). So what is left in frozenV2 already excludes what you lent; do not subtract it twice. Delegation itself is covered in how energy delegation works.

The formulas, checked to the unit
Energy limit = TRX for energy (own frozenV2 + delegated in, Stake 1.0 and 2.0 together) × TotalEnergyLimit / TotalEnergyWeight, rounded down.
Bandwidth limit (NetLimit) = TRX for bandwidth × TotalNetLimit / TotalNetWeight, rounded down. The free 600 is separate.
| Address and resource | TRX behind it | Formula | Reported |
|---|---|---|---|
| Deployer, energy | 966 + 1 = 967 | 967 × 180,000,000,000 / 18,637,619,932 = 9,339.2 | 9,339 |
| SR, energy | 44,339 | 44,339 × 180,000,000,000 / 18,637,619,932 = 428,220.99 | 428,220 |
| SR, bandwidth | 21,069.16219 + 116 = 21,185.16219 | × 43,200,000,000 / 26,610,933,907 = 34,391.8 | 34,391 |
| SR TTW663…DxQ1 (tronalliance.org), energy, earlier snapshot | 43,103 + 1 = 43,104 | × 180,000,000,000 / 18,645,566,762 = 416,116.1 | 416,116 |
All four match. The old Stake 1.0 amounts count in full, which is easy to forget when you rebuild the number from staking data.
The limit also moves when nothing on the address changes. Eight minutes after the first answer, the same SR showed 428,214: other people had staked more TRX, TotalEnergyWeight grew, and each TRX yields a little less. For planning, energy per TRX is 180,000,000,000 / 18,637,619,932 = 9.658, so one USDT transfer of 64,285 energy a day needs 64,285 / 9.658 = 6,656.1, rounded up 6,657 TRX staked, about 6,700 TRX as of Nov 21, 2026. Whether that beats renting is weighed in freeze TRX or rent energy.
Recovery and the window
EnergyUsed is not a counter that resets at midnight. java-tron’s ResourceProcessor decays usage linearly over a window: the default is 28,800 blocks of 3 seconds, 24 hours, stored × 1,000 when energy_window_optimized is true, hence 28,800,000. When new usage lands on usage that is partly recovered, the node takes a usage-weighted average of the remaining and the full window, which is why the deployer shows 19,470,554: about 19,470 blocks, or 16.2 hours.
Both calls apply this recovery before they answer (java-tron calls updateUsage in Wallet.getAccountResource and Wallet.getAccount), so energy_usage matches EnergyUsed read at the same moment, while latest_consume_time_for_energy keeps the time of the last real consumption.
Model calculation: an address with a 24-hour window spends 64,285 energy and does nothing else. After 6 hours EnergyUsed is about 64,285 × 18/24 = 48,214; after 12 hours about 32,143; after 24 hours the field disappears.

From the numbers to a decision
Shortfall for the next transfer = energy the call needs - (EnergyLimit - EnergyUsed). The need comes from a simulation, explained in estimating energy with triggerconstantcontract: 64,285 for a recipient that holds USDT, 130,285 for one that does not.
For an address in the deployer’s state (0 free energy) and a recipient that holds USDT, the network burns 6.43 TRX; renting the same energy at 30 SUN for 1 hour costs 1.93 TRX on Dec 3, 2026. The rate changes, the exact price is shown in the service before you pay, and reference prices are on the pricing page.
- Read
getaccountresource; treat every missing field as 0. - Compute free energy and free bandwidth separately: a transaction takes bandwidth from one source in full.
- Compare with the simulated need for the next transfer.
- Top up the shortfall, then read again until
EnergyLimitgrows. - Recompute energy per TRX from the same answer, never from an old note.
Where these figures sit on the address page instead of the API is shown in our TronScan energy and bandwidth guide; ordering energy from code is on the API page.
FAQ
Why is EnergyLimit missing from the response? The address has no TRX staked or delegated for energy, and zero fields are not printed. Treat it as 0.
Does EnergyLimit include rented energy?
Yes. Rented energy arrives as a delegation, so it shows up in acquired_delegated_frozenV2_balance_for_energy and in EnergyLimit.
Why did EnergyLimit drop when I changed nothing?
TotalEnergyWeight grew: more TRX was staked across the network, so each TRX gives a little less energy.
Does calling getaccountresource cost anything? No. It reads node data and creates no transaction.