For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reclaim Resources

Request reclamation of Energy or Bandwidth for Transaction Handoff orders by order ID, or in batches by receiving address and resource type. Both Partner Balance Payment and Partner End-User Payment are supported.

Reclamation by Order ID

Request early reclamation of Transaction Handoff resources

post

A successful response means the reclaim request was accepted, not that reclamation is complete on-chain. Query the order confirm_status for progress.

Path parameters
order_idstring · min: 1Required

The data.order_id returned when creating the order. Required and must not be blank. Do not use data.hash or client_order_id.

Header parameters
CF-ACCESS-KEYstringRequired

The API access key.

Example: your api key
CF-ACCESS-SIGNstringRequired

The Base64-encoded signature.

Example: signature
CF-ACCESS-TIMESTAMPstringRequired

The UTC request timestamp (e.g. 2008-08-08T08:08:08.888Z).

Responses
200

code=0 means the reclaim request was accepted and data contains the order information. A nonzero code indicates a failed request.

application/json
codeinteger · int32Optional

Returns 0 on success; all other values indicate errors

msgstringOptional

Error message returned when an error occurs

sub_codestringOptional
sub_msgstringOptional
post/v1/mate/open/transaction/reclaim/{order_id}
POST /v1/mate/open/transaction/reclaim/{order_id} HTTP/1.1
Host: api.catfee.io
CF-ACCESS-KEY: text
CF-ACCESS-SIGN: text
CF-ACCESS-TIMESTAMP: text
Accept: */*
200

code=0 means the reclaim request was accepted and data contains the order information. A nonzero code indicates a failed request.

{
  "code": 1,
  "msg": "text",
  "sub_code": "text",
  "sub_msg": "text",
  "data": {
    "order_id": "text",
    "client_order_id": "text",
    "receiver": "text",
    "quantity": 1,
    "hash": "text",
    "amount_sun": 1,
    "payment_amount_sun": 1,
    "status": "CREATED",
    "payment_status": "UNPAID",
    "confirm_status": "UNCONFIRMED",
    "business_type": "UNKNOWN_BUSINESS_TYPE",
    "business_source_type": "UNKNOWN_BUSINESS_SOURCE_TYPE",
    "resource_type": "ENERGY",
    "created_at": 1
  }
}

Request

  • Use the data.order_id returned when creating the order, not the delegation transaction data.hash or client_order_id. Only orders belonging to the current account can be reclaimed.

  • No request body is required. Include the API authentication headers. Sign with POST and the full path containing the actual order ID; see API Overview.

Reclamation Result

code=0 means the reclaim request was accepted. It does not mean reclamation is complete on-chain. If reclamation cannot proceed immediately, the order expires early for subsequent processing. You can also request early reclamation before delegation is confirmed.

The response data contains the order information. Use Get Order Detail to check confirm_status:

confirm_status

Meaning

RECLAIM_CONFIRMING

The reclamation transaction is awaiting on-chain confirmation.

RECLAIM_CONFIRMED

Reclamation has been confirmed on-chain.

RECLAIM_CONFIRMED_FAIL

Reclamation confirmation failed; reclamation is not complete.

Other confirmation statuses do not indicate completed reclamation either. status=CONFIRMED only means delegation was confirmed. Use confirm_status=RECLAIM_CONFIRMED to determine whether reclamation is complete.

Batch Reclamation by Receiving Address

Use POST /v1/mate/open/transaction/reclaim to request reclamation of the authenticated member's Transaction Handoff orders by receiving address and resource type, without specifying individual order IDs.

Request batch reclamation of Transaction Handoff orders by receiving address

post

Processes up to 100 orders belonging to the authenticated member whose delegation is confirmed (DELEGATION_CONFIRMED) per request. Check the matched count, accepted count, and failed order IDs. Acceptance does not mean reclamation is complete on-chain.

Query parameters
receiverstringRequired

TRON address receiving the resources

resource_typestring · enumOptional

Resource type: ENERGY or BANDWIDTH. Defaults to ENERGY.

Default: ENERGYPossible values:
Header parameters
CF-ACCESS-KEYstringRequired

The API access key.

Example: your api key
CF-ACCESS-SIGNstringRequired

The Base64-encoded signature.

Example: signature
CF-ACCESS-TIMESTAMPstringRequired

The UTC request timestamp (e.g. 2008-08-08T08:08:08.888Z).

Responses
200

OK

application/json
codeinteger · int32Optional

Returns 0 on success; all other values indicate errors

msgstringOptional

Error message returned when an error occurs

sub_codestringOptional
sub_msgstringOptional
post/v1/mate/open/transaction/reclaim
POST /v1/mate/open/transaction/reclaim?receiver=text HTTP/1.1
Host: api.catfee.io
CF-ACCESS-KEY: text
CF-ACCESS-SIGN: text
CF-ACCESS-TIMESTAMP: text
Accept: */*
200

OK

{
  "code": 1,
  "msg": "text",
  "sub_code": "text",
  "sub_msg": "text",
  "data": {
    "matched_count": 1,
    "accepted_count": 1,
    "failed_order_ids": [
      "text"
    ]
  }
}

Request Details

Pass parameters in the URL query string. No request body is required.

Parameter
Type
Required
Description

receiver

string

Yes

TRON address receiving the resources.

resource_type

string

No

ENERGY or BANDWIDTH. Defaults to ENERGY; explicitly pass BANDWIDTH to reclaim bandwidth.

Include the three authentication headers: CF-ACCESS-KEY, CF-ACCESS-SIGN, and CF-ACCESS-TIMESTAMP. Generate the signature using the HTTP method POST and the request path including the complete query string. Parameter order and encoding must match the actual request. See API Overview for signature rules.

Example request (replace the receiving address, authentication details, and timestamp):

Processing Scope

  • Only Transaction Handoff orders belonging to the authenticated member, matching the receiving address and resource type, and with confirmed delegation (confirm_status=DELEGATION_CONFIRMED) are processed. Unlike reclamation by order ID, batch reclamation excludes orders whose delegation has not yet been confirmed.

  • Each request matches and processes up to 100 orders.

  • Reclamation is attempted first. If it cannot proceed immediately, the order's expiration time is brought forward for background processing. Acceptance does not mean reclamation is complete on-chain.

Response and Result Confirmation

The response data contains the batch result, not order details. The following example shows a batch in which one order was not accepted:

Field
Type
Description

matched_count

integer

Number of orders matched in this request, up to 100; not the total number of orders for the address.

accepted_count

integer

Number of orders accepted for reclamation; does not mean reclamation is complete on-chain.

failed_order_ids

string[]

Order IDs whose reclamation requests were not accepted. Empty when all requests were accepted.

  • code=0 does not mean all orders were accepted or that reclamation is complete on-chain. Check both counts and failed_order_ids. See API Error Codes and Handling for nonzero codes.

  • If no orders match, the response contains matched_count=0, accepted_count=0, and failed_order_ids=[].

  • If matched_count=100, additional orders may remain. Query order progress before deciding whether to submit another request. Do not add accepted counts from multiple requests and treat the sum as the number of orders reclaimed.

  • For failed orders or uncertain results, use GET /v1/mate/open/transaction/{order_id} to Get Order Detail. Use confirm_status=RECLAIM_CONFIRMED to determine whether reclamation is complete on-chain. Neither status=CONFIRMED nor the batch accepted count establishes completed reclamation.

Last updated