Purchase TRON Network Transaction Resources
curl -X POST \
--url 'https://openapi.chainup.com/api/mpc/tron/delegate?app_id=16a9f17fc2ad61ca4339fdd6a8a37f21&data=SWYYr-LBVAmaS0eq8n-CUT_nHkM3OBxyWOsImMTe41UaqAoYI2ZghmaphXHov-7hsRsVmOhyPqC-JFuRGvonJKFd2Jirxv6Vn_8V40r_MMYTkhqcviQbZWYW5xX8Ai8CIpqas9fIWVDIYA_NKBl0UCJpwGxscxLNpjq5Z8-BTyIYDsVBquM9zEQGBCfcA7szD9n2fN_loSkoexlwqV8wg9HIZO5yQ6utZ_Kt0lNDQQb8zn8BwfAvsEsbJlOINUAqhxh1vV_AJ4bXn2uYx8TaYcBht-n_ZcBdxIDt975dbOFUiH-oCzIuDi1oLDtb4EylfCvhU5E4ozel_lQ-6cyIG0Dqiiyx0RFFOCJzPSXIoV031pvoa8pTCpkWklh8mRw1rylBgeZtqSxpnJO2_u2RIlXq6Hs8Yly9CmhIXaSrUgPir0h6xVxlf4VC6PFVCkiiTlp0kZ_H_UbKm0nUis3v3U2sflWJ2C449waSrikhuxVrFAQ6PQmrFVCAE6MYXNrFXJQuam2HAIQNSGbFQjspw8b_bXyfyZMGZ3K2oBC4I_v3eETTdPe0pfSNJb-5g37K0tOAr_UFbWK8pkC8yl56fSjn8tcR3yCRWwoi8jxTcUBiswTtvXZtzgG4dyzkaHXjsZjSGiywXSqP76VZWlyOmAx6IDSViLcPLPISdU3ruCI'
{
"trans_id": 1
}
Before making a purchase, please refer to Purchase TRON Network Transaction Resources to complete all the necessary configurations.
Request Parameters
Unique business identifier.
0: System estimation - full delegation, 1: Specified quantity, 2: System estimation - supplementary delegation, default is 0 if not specified.
All methods comply with minimum purchase value limits:
- Minimum bandwidth purchase quantity: 300
- Minimum energy purchase quantity: 10,000
1. System Estimation - Full delegation (buy_type=0)
- Required fields: address_to and contract_address.
- he system will automatically estimate the total resources needed for the current transaction plus a certain buffer. For example, if the user requests an energy proxy for a USDT transfer and the system estimates the required energy to be 64,285, the purchase amount will be 64,285 + 115 = 64,400 to ensure the transaction is successfully completed.
- Note: The system estimation may be affected by Tron network fluctuations. If the transaction fails due to insufficient estimation, please switch to the Specified Quantity (buy_type=1) method.
2. System estimation - supplementary delegation (buy_type=2)
- Required fields: address_to and contract_address.
- This method only affects energy purchase quantities (bandwidth purchase estimation for buy_type=2 is the same as buy_type=0).
- The system will calculate the remaining energy required based on the current address balance and slightly supplement it to ensure successful transactions. For example, if the user requests an energy proxy for a USDT transfer and the system estimates the required energy to be 64,285 while the current address has 10,000 energy, the purchase amount will be 64,285 - 10,000 + 115 = 54,400 to ensure smooth completion.
- Note: The system estimation may be affected by Tron network fluctuations. If the transaction fails due to insufficient estimation, please switch to the Specified Quantity (buy_type=1) method.
3. Specified quantity (buy_type=1)
- Users can customize the resource purchase quantity.
Resource purchase type: 0: Energy and Bandwidth, 1: Energy, default if not specified
If you choose to purchase bandwidth (resource_type=0), please note the following:
1.The minimum purchase quantity is 300.
2.Each bandwidth purchase order will incur a fixed additional fee of 560, which covers the bandwidth cost required for initiating delegation and recovery by the system. For example, if you request to purchase 600 bandwidth units, the total bandwidth amount for the order will be 600 + 560 = 1,160.
Resource purchase cycle: 10010 - 10 minutes, 20001 - 1 hour, 30001 - 1 day
Energy Amount
-
If buy_type=1, please enter the specific amount of energy, with a minimum value of 10,000.
-
If buy_type=0 or 2, the quantity will be automatically provided by the system.
Bandwidth Amount
-
If buy_type=1, please enter the specific bandwidth amount, with a minimum value of 300.
-
If buy_type=0 or 2,, the quantity will be automatically provided by the system.
-
Please note that each bandwidth purchase order will incur a fixed additional fee of 560 to cover the bandwidth cost for system-initiated proxy and recovery processes. For example, if you enter a purchase amount of 600 bandwidth, the total bandwidth for the order will be 600 + 560 = 1160.
The address that will receive the resources
The transfer address for estimating miner fees.
Required when selecting buy_type=0 or buy_type=2.
Contract address for estimating miner fees.
Required when selecting buy_type=0 or buy_type=2.
Response Parameters
curl -X POST \
--url 'https://openapi.chainup.com/api/mpc/tron/delegate?app_id=16a9f17fc2ad61ca4339fdd6a8a37f21&data=SWYYr-LBVAmaS0eq8n-CUT_nHkM3OBxyWOsImMTe41UaqAoYI2ZghmaphXHov-7hsRsVmOhyPqC-JFuRGvonJKFd2Jirxv6Vn_8V40r_MMYTkhqcviQbZWYW5xX8Ai8CIpqas9fIWVDIYA_NKBl0UCJpwGxscxLNpjq5Z8-BTyIYDsVBquM9zEQGBCfcA7szD9n2fN_loSkoexlwqV8wg9HIZO5yQ6utZ_Kt0lNDQQb8zn8BwfAvsEsbJlOINUAqhxh1vV_AJ4bXn2uYx8TaYcBht-n_ZcBdxIDt975dbOFUiH-oCzIuDi1oLDtb4EylfCvhU5E4ozel_lQ-6cyIG0Dqiiyx0RFFOCJzPSXIoV031pvoa8pTCpkWklh8mRw1rylBgeZtqSxpnJO2_u2RIlXq6Hs8Yly9CmhIXaSrUgPir0h6xVxlf4VC6PFVCkiiTlp0kZ_H_UbKm0nUis3v3U2sflWJ2C449waSrikhuxVrFAQ6PQmrFVCAE6MYXNrFXJQuam2HAIQNSGbFQjspw8b_bXyfyZMGZ3K2oBC4I_v3eETTdPe0pfSNJb-5g37K0tOAr_UFbWK8pkC8yl56fSjn8tcR3yCRWwoi8jxTcUBiswTtvXZtzgG4dyzkaHXjsZjSGiywXSqP76VZWlyOmAx6IDSViLcPLPISdU3ruCI'
{
"trans_id": 1
}
curl -X POST \
--url 'https://openapi.chainup.com/api/mpc/tron/delegate?app_id=16a9f17fc2ad61ca4339fdd6a8a37f21&data=SWYYr-LBVAmaS0eq8n-CUT_nHkM3OBxyWOsImMTe41UaqAoYI2ZghmaphXHov-7hsRsVmOhyPqC-JFuRGvonJKFd2Jirxv6Vn_8V40r_MMYTkhqcviQbZWYW5xX8Ai8CIpqas9fIWVDIYA_NKBl0UCJpwGxscxLNpjq5Z8-BTyIYDsVBquM9zEQGBCfcA7szD9n2fN_loSkoexlwqV8wg9HIZO5yQ6utZ_Kt0lNDQQb8zn8BwfAvsEsbJlOINUAqh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