Resource Model in Java-Tron

·

Introduction to Resource Model

Voting power, bandwidth, and energy are critical system resources in the TRON network:

Notes:


Voting Power (TP)

Obtaining TP


Bandwidth

Calculation Rules

Special Cases


Energy

Key Concepts

FeeLimit Guide


Dynamic Energy Model

How It Works

Formula:

Actual Energy = Base Energy × (1 + energy_factor)

Managing Resources

Staking/Unstaking

Resource Delegation

APIs

EndpointDescription
wallet/getaccountresourceCheck resource balances
wallet/unfreezebalancev2Unstake TRX
wallet/delegateresourceDelegate resources

FAQ

Q: How is bandwidth calculated for token transfers?
A: Token issuer’s bandwidth is used first, falling back to user’s staked/free bandwidth or TRX burning.

Q: What happens if a contract fails?
A: Reverts deduct only used energy; crashes/timeouts deduct maximum allocated energy.

Q: Can I cancel unstaking?
A: Yes, use cancelallunfreezev2 to revert pending unstakes.

👉 Learn more about Stake 2.0
👉 TRON developer docs