Account Resources

APIs for querying account resources and delegating, undelegating, or reclaiming resources.

APIs for querying account resources and delegating, undelegating, or reclaiming resources.

APIs in this group

Resource queries

APIPurpose
GetAccountResourceQuery an account's Bandwidth, Energy, and staking-related resource state.
GetAvailableUnfreezeCountQuery the number of available unstake operations for an account.
GetCanWithdrawUnfreezeAmountQuery the amount that can be withdrawn after unstaking.
GetCanDelegatedMaxSizeQuery the maximum resource amount that can be delegated.
GetDelegatedResourceV2Query delegated resources between two accounts.
GetDelegatedResourceAccountIndexV2Query resource delegation indexes for an account.

Stake 2.0 resource operations

APIPurpose
FreezeBalanceV2Stake TRX to obtain Bandwidth or Energy.
UnfreezeBalanceV2Unstake TRX from Stake 2.0.
WithdrawExpireUnfreezeWithdraw TRX after the unstaking lock period ends.
DelegateResourceDelegate Bandwidth or Energy to another account.
UnDelegateResourceReclaim delegated resources.
CancelAllUnfreezeV2Cancel all pending unstake operations.

Related resources

  • Resource model — Bandwidth, Energy, staking, and resource consumption
  • Stake 2.0 — stake, unstake, delegate, and reclaim resources