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
| API | Purpose |
|---|---|
| GetAccountResource | Query an account's Bandwidth, Energy, and staking-related resource state. |
| GetAvailableUnfreezeCount | Query the number of available unstake operations for an account. |
| GetCanWithdrawUnfreezeAmount | Query the amount that can be withdrawn after unstaking. |
| GetCanDelegatedMaxSize | Query the maximum resource amount that can be delegated. |
| GetDelegatedResourceV2 | Query delegated resources between two accounts. |
| GetDelegatedResourceAccountIndexV2 | Query resource delegation indexes for an account. |
Stake 2.0 resource operations
| API | Purpose |
|---|---|
| FreezeBalanceV2 | Stake TRX to obtain Bandwidth or Energy. |
| UnfreezeBalanceV2 | Unstake TRX from Stake 2.0. |
| WithdrawExpireUnfreeze | Withdraw TRX after the unstaking lock period ends. |
| DelegateResource | Delegate Bandwidth or Energy to another account. |
| UnDelegateResource | Reclaim delegated resources. |
| CancelAllUnfreezeV2 | Cancel all pending unstake operations. |
Related resources
- Resource model — Bandwidth, Energy, staking, and resource consumption
- Stake 2.0 — stake, unstake, delegate, and reclaim resources