Payment

Rent Tron energy for an address

Rents Tron energy for the specified address, deducting the cost from the user's balance. The cost is determined by the current TRX price and the amount of energy required (5 TRX for 65000 energy or 10 TRX for 131000 energy).

post/v1/payment/tron-energy/rent

Request

  • Base URL
    https://api.waxpeer.com
  • Auth
    none declared

Query parameters

apistring required

Your <a target='_blank' href='https://waxpeer.com/profile/user'>WAXPEER API</a>

Request body

addressstring required

Tron wallet address to rent energy for

Example request

{
  "address": "TJnmJPpsbmfaLPmkxWz5EXKxUCtzdGSvcT"
}

Response

successful operation

successboolean
addressstring

Tron wallet address that energy was rented for

total_costnumber

Amount deducted from user balance in cents

msgstring

Success or error message

Example response

{
  "success": true,
  "address": "TJnmJPpsbmfaLPmkxWz5EXKxUCtzdGSvcT",
  "total_cost": 1170,
  "msg": "Successfully rented Tron energy for 1.17 USD (5 TRX)"
}

Changes

No recorded changes to this operation across all 4 revisions of this API.