Saltar al contenido principal

Crear retiro

POST /api/v1/account/withdrawal
Retira TRX a cualquier direccion TRON. Comision: 1 TRX.

Cuerpo de la solicitud

to_address
string
requerido
Direccion TRON de destino
amount_trx
string
requerido
Monto a retirar en TRX
totp_code
string
Codigo 2FA (si la autenticacion de dos factores esta habilitada)

Ejemplo

curl -X POST https://api.tronrental.com/v1/account/withdrawal \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "to_address": "TDestinationAddress...",
    "amount_trx": "100"
  }'
Response
{
  "id": 56,
  "to_address": "TDestinationAddress...",
  "amount_trx": "100.00",
  "fee_trx": "1.00",
  "status": "completed",
  "tx_hash": "a1b2c3d4e5f6...",
  "created_at": "2026-03-05T12:00:00Z"
}

Listar retiros

GET /api/v1/account/withdrawals
Devuelve tu historial de retiros.
curl https://api.tronrental.com/v1/account/withdrawals \
  -H "X-API-Key: your_api_key"
Response
[
  {
    "id": 56,
    "to_address": "TDestinationAddress...",
    "amount_trx": "100.00",
    "fee_trx": "1.00",
    "status": "completed",
    "tx_hash": "a1b2c3d4e5f6...",
    "created_at": "2026-03-05T12:00:00Z"
  }
]

Estados del retiro

EstadoDescripcion
pendingEn cola para procesamiento
completedTRX enviado, tx_hash disponible
failedFallido, monto reembolsado