Step 2: Extend Request

Option 1: Extend Order using API key

POST https://api.tronsave.io/v2/extend-request

Create a new extended request order by apikey

Rate limit: 15 requests per 1 second

Headers

Name
Type
Description

apikey*

String

Tronsave api key that present for internal account

Request Body

Name
Type
Description

receiver*

String

The address that received resource

extendData*

Array

Array extends data. Get a response from the API estimate, get an extendable delegate

resourceType

String

"ENERGY" or "BANDWIDTH", default: "ENERGY"

Return the order ID if successful.

{
    "error": false,
    "message": "Success",
    "data": {
        "orderId": "6819da2d4d1b2aadb0d44eee"
    }
}

Example

Example Code

Option 2: Extend Order using Signed Transaction

POST https://api.tronsave.io/v2/extend-request

Rate limit: 15 requests per 1 second

Request Body

Name
Type
Description

receiver*

String

The address that received resource

extendData*

Array

Array extends data. Get a response from the API estimate, get an extendable delegate

resourceType

String

"ENERGY" or "BANDWIDTH", default: "ENERGY"

signedTx

SignedTransaction

Signed transaction, note that it is a JSON object (signedTx in GET SIGNED)

Request params example:

  • To create a signed transaction, please follow the instructions here.

  • The amount of TRX required for signing is provided in the total_estimate_trx field of the Get Extendable Delegates API response.

Example Code

Last updated