Tron (TRX)
With the Tron staking APIs, you can obtain resources (Bandwidth, Energy) to use for fees. The obtained resources can be delegated to other addresses. Tron staking lets you reduce the TRX you must pay when sending transactions.
Tron staking differs somewhat in purpose from staking on other platforms, and has its own separate APIs.
Stakeable addresses
| Wallet type | Address type |
|---|---|
| Centralized wallet | Fee address |
| Child address withdrawal wallet | Fee address |
1. Stake
Call the Request Stake API to deposit assets into the network. You can choose only one of Bandwidth or Energy as the resource to obtain by staking.
| Status | Description |
|---|---|
PENDING | The staking transaction has been created |
UNFINALIZED | The staking transaction has been included in a block |
FINALIZED | The next block has been produced after the staking transaction was included in a block |
FAILED | The staking transaction has failed |
2. DelegateResource
The Bandwidth or Energy obtained by staking can be delegated to another address by calling the Request DelegateResource API. Delegated resources can be reclaimed by calling the Request UndelegateResource API. If you set a lock period when delegating, the receiving account is guaranteed use of the resource for that period. If lock is set to true, the resource can be reclaimed after the lock_period has passed.
3. Unstake
Call the Request Unstake API to release the assets deposited in the network. When released, the deposited principal can be withdrawn after the unstaking period of about 14 days. When you unstake, you lose all of the resources obtained by staking.
4. Claim
Once the unstaking period has passed, you can withdraw the assets. Call the Request Claim API to withdraw the assets.