Buy Energy
Create resource order
delegation energy quantity,must >= 65000
Address to receive the resource
Duration of the order: allowed values are 1h
Client order id,For Idempotent verification(length <= 64)
Whether activation is required. Defaults to true.If set to false and the recipient address is not activated, an error will be returned.
trueThe API Access key as a string
your api keyThe Base64-encoded signature (see signing messages subsection for details)
signatureThe UTC timestamp of your request .e.g : 2008-08-08T08:08:08.888Z
OK
OK
Key API: Create Order (POST /v1/order)
When creating an order via CatFee.IO’s API, please pay special attention to the following return values:
id (Payment Hash / Order ID):
A unique identifier for each order.
You can retrieve the order details using the
GET /v1/order/{id}endpoint.
status (Order Status):
Reflects the execution progress of the order.
If
statusisDELEGATE_SUCCESS, the energy delegation has been successfully submitted to the TRON blockchain.
Note: There is a very small chance (~0.1%) that the transaction may fail to be broadcast to the blockchain.
confirm_status (On-Chain Confirmation Status):
Confirms whether energy has been successfully delivered to the target address.
If
confirm_statusisDELEGATION_CONFIRMED, the energy has been successfully sent and confirmed on-chain.
client_order_id (Client-defined Order ID):
For idempotent requests. See: API Idempotency Support
❓How to Ensure Energy Has Been Successfully Sent?
You can confirm energy delivery through two methods:
1. Query the energy balance of the target address via TRON API:
Use the official TRON API or wallet tools (e.g., TronLink) to check the energy balance of the target address.
Sample API Request (TRON Official Endpoint):
Check fields such as energy_limit and energy_used in the response.
2. Check the confirm_status of the order:
Use GET /v1/order/{id} to retrieve order details.
If confirm_status is DELEGATION_CONFIRMED, the energy has been successfully confirmed on-chain.
Example Workflow
1. Create Order
Request:
Response:
2. Query Order Status
Request:
Response:
3. Confirm Successful Energy Transfer
If confirm_status is DELEGATION_CONFIRMED, energy has been successfully sent.
You may also use the TRON API to verify the target address’s energy balance.
FAQs
Q: Order status is DELEGATE_SUCCESS but energy hasn’t arrived?
Reason: The transaction might not have been successfully broadcast (~0.1% probability).
Solution: Wait for a while and re-check the order status or verify on-chain via TRON block explorers.
Q: Energy arrival is delayed?
Reason: Potential TRON network congestion.
Solution: Ensure
confirm_statusisDELEGATION_CONFIRMED. This confirms energy delivery.
By tracking the id and confirm_status values and using on-chain validation, you can ensure energy transfers are reliable.
If you still have questions, please contact CatFee customer support: @CatFee_James
Last updated
Was this helpful?