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:
Check extendable delegates — estimate which delegations can be extended, the price, and the total TRX cost.
Create the extend request — submit the
extend_datafrom step 1 to actually extend.
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
apikey*
String
TronSave API Key tied to your Internal Account
Request Body
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
apikey*
String
TronSave API Key tied to your Internal Account
Request Body
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
Buy with REST API (v0) — the legacy buy flow.
API Reference — the current, recommended API.
Authentication — get and manage your API Key.
Last updated