为能量委托创建支付账单
cURL
curl --request POST \ --url https://api.example.com/api/v1/invoices \ --header 'Content-Type: application/json' \ --data ' { "address": "<string>", "energy_amount": 123, "transfer_count": 123, "duration_hours": 123 } '
{ "invoice_id": 123, "payment_address": "<string>", "price_trx": "<string>", "price_usdt": "<string>", "status": "<string>", "expires_at": "<string>" }
transfer_count
pending
paid
delegated
expired
failed
curl -X POST https://api.tronrental.com/v1/invoices \ -H "X-API-Key: your_api_key" \ -H "Content-Type: application/json" \ -d '{ "address": "TRecipientAddress...", "transfer_count": 1, "duration_hours": 1 }'
{ "invoice_id": 789, "payment_address": "TPaymentAddress...", "address": "TRecipientAddress...", "energy_amount": 65000, "duration_hours": 1, "price_trx": "2.75", "price_usdt": "0.64", "status": "pending", "expires_at": "2026-03-05T12:30:00Z" }