Extend

Legacy v0 flow for extending TronSave resource delegations with an API Key — check extendable delegates, then create extend requests.

To use this feature you must have an API Key. See Authentication for how to get one and how it is tied to your Internal Account.

The extend flow has two steps:

  1. Check extendable delegates — estimate which delegations can be extended, the price, and the total TRX cost.

  2. Create the extend request — submit the extend_data from step 1 to actually extend.

A runnable Postman collection for this flow is available: Extend order with API Key.

Step 1: Check all extendable delegates

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

Check extendable delegates with your API Key.

Rate limit: 1 request per 1 second.

Headers

Name
Type
Description

apikey*

String

TronSave API Key tied to your Internal Account

Request Body

Name
Type
Description

extend_to*

String

Time in milliseconds you want to extend to

max_price

Number

Maximum price you want to pay to extend

receiver

String

The address that received the resource delegation

The extend_data array in the response is what you pass to Step 2 to create the actual extend requests.

Example

Example code

Step 2: Create an extend request by API Key

POST https://api.tronsave.io/v0/internal-extend-request

Create a new extend request order with your API Key.

Rate limit: 15 requests per 1 second.

Headers

Name
Type
Description

apikey*

String

TronSave API Key tied to your Internal Account

Request Body

Name
Type
Description

receiver*

String

The address that received the resource

extend_data*

Array

Array of extend data. Take it from the response of the estimate extendable delegates API (Step 1)

Returns an array of order IDs on success.

Example

Example code

Next steps

Last updated