Step 1: Get Extendable Delegates

Check all extendable delegates

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 that present for internal account.

Request Body

Name
Type
Description

extendTo*

String

Time in milliseconds you want to extend to

receiver*

String

The address that received 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

Number maximum price you want to pay to extend

  {
            "extendOrderBook": [
                {
                    "price": 133,
                    "value": 64319
                },
                ...
            ], //Overview extends the resource amount at every single price
            "totalDelegateAmount": 64319, 
            //Total current delegate of receiver address in tronsave
            "totalAvailableExtendAmount": 64319,
            //Total available delegate of the receiver address in tronsave
            "totalEstimateTrx": 8554427,
            //Estimate TRX payout if using extend_data below to create extend request
            "yourBalance": 20000000,
            //api key's internal balance 
            "isAbleToExtend": true,
            //Compare balance internal and total_estimate_trx 
            "extendData": [
                {
                    "delegator": "TMN2uTdy6rQYaTm4A5g732kHRf72222222",
                    "isExtend": true,
                    "extraAmount": 0,
                    "extendTo": 1728459019
                }
            ]
            //extend_data that is used to create Extend requests in Step 2
}

Example

Example Code

Last updated