Get Extendable Delegates

Query an order to find which delegates are eligible for extension, how much TRX it will cost, and the extendData payload you pass to the extend request in step 2.

This is step 1 of the v2 extend flow. Given a receiver address and a target extendTo time, the endpoint returns the delegates that can still be extended, the estimated TRX cost, and an extendData array. Use that extendData to build the payload for Submit extend request.

POST https://api.tronsave.io/v2/get-extendable-delegates

Rate limit: 1 request per 1 second.

Headers

Name
Type
Description

apikey*

String

TronSave API key tied to your internal account. See Authentication to get your API key.

* Required.

Request body

Field
Type
Description

extendTo*

String

Time in seconds you want to extend to.

receiver*

String

The address that received the resource delegate.

requester

String

The address of the requester. If not provided, the requester is taken from the API key.

resourceType

String

"ENERGY" or "BANDWIDTH". Default: "ENERGY".

maxPriceAccepted

Number

The maximum price you want to pay to extend.

* Required.

Request body example

{
    "extendTo": 1728704969000,
    "maxPriceAccepted": 165,
    "receiver": "TFwUFWr3QV376677Z8VWXxGUAMF11111111",
    "resourceType": "ENERGY"
}

Responses

Success response example

Request examples

To integrate with the TRON Nile Testnet, replace the base URL with https://api-dev.tronsave.io.

Next steps

Last updated