Get Direct Recharge Info
Returns information about direct energy recharge service. After sending TRX to the specified address, the sender will receive delegated energy proportional to the amount of TRX sent. This endpoint is public and does not require authentication.
POST /v1/direct-recharge-info
Request
No parameters are required for this request.
bash
#!/bin/bash
# Make API request
curl -X POST "https://api.tronzap.com/v1/direct-recharge-info"
javascript
const axios = require('axios');
// Make API request
axios({
method: 'post',
url: 'https://api.tronzap.com/v1/direct-recharge-info'
})
.then(response => console.log(response.data))
.catch(error => console.error(error));
php
<?php
// Make API request
$ch = curl_init('https://api.tronzap.com/v1/direct-recharge-info');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
python
import json
import requests
# Make API request
response = requests.post(
'https://api.tronzap.com/v1/direct-recharge-info'
)
print(response.json())
Response
The response provides information about the direct energy recharge service.
Response Fields
Field | Type | Description |
---|---|---|
code | integer | Response code (0 = success) |
result | object | Response data |
result.address | string | TronZap's public wallet address for direct recharge |
result.rates | array | List of available energy rate tiers |
result.rates[].duration | integer | Duration in hours (always 1) |
result.rates[].min_energy | integer | Minimum energy amount in SUN |
result.rates[].max_energy | integer | Maximum energy amount in SUN |
result.rates[].price | float | Price per 1000 energy |
result.rates[].price_32k | float | Price for 32k energy |
result.rates[].price_65k | float | Price for 65k energy |
result.rates[].price_131k | float | Price for 131k energy |
Example Response
json
{
"code": 0,
"result": {
"address": "TRONZAP_PUBLIC_TRX_ADDRESS",
"rates": [
{
"duration": 1,
"min_energy": 32000,
"max_energy": 131000,
"price": 0.052300000,
"price_32k": 1.67,
"price_65k": 3.4,
"price_131k": 6.85
}
]
}
}