

Pay the transfer fee on any network from your own application: TRON energy and bandwidth, and gas on BNB Smart Chain and Ethereum. One API for every network, paid from your TRXzap balance and fulfilled exactly like orders on the website.
Every request must include your API key in the X-API-Key header. Create or revoke your key in the panel. Each account has one key; generating a new one disables the previous key immediately.
X-API-Key: tzk_your_api_keyCall the API from your server only. Never put your key in a website, mobile app or anywhere a user can read it - anyone with the key can spend your balance.
https://api.trxzap.com/api/public/v2Every endpoint uses the same field names (camelCase), the same order shape and the same statuses, whatever the network. Every response is the same envelope, with the real HTTP status code.
network: "tron" | "bsc" | "eth" | The network. More networks are added to this list; GET /networks always shows what is available. |
type: "energy" | "bandwidth" | "gas" | What to buy: energy or bandwidth on TRON (energy if left out), gas on the other networks (can be left out). |
address: "T..." | "0x..." | A TRON address on tron, a 0x address on bsc and eth. |
total, available: TRX | Every price and balance is in TRX. |
{ "status": 200, "message": null, "result": ... }Each key may make 60 requests per minute. Requests over the limit receive HTTP 429; wait and retry.
/networksEvery network, what can be ordered on it and its live prices at your account's price. Gas is sold per USDT transfer.
curl https://api.trxzap.com/api/public/v2/networks \
-H "X-API-Key: tzk_your_api_key"{
"status": 200,
"message": null,
"result": [
{
"network": "tron", "name": "TRON", "coin": "TRX",
"products": [
{ "type": "energy", "unit": "ENERGY", "minAmount": 32000, "maxAmount": 5000000,
"prices": [ { "amount": 65000, "total": 2.34 }, { "amount": 131000, "total": 4.716 } ] },
{ "type": "bandwidth", "unit": "BANDWIDTH", "minAmount": null, "maxAmount": null,
"prices": [ { "amount": 350, "total": 0.51 }, { "amount": 1000, "total": 0.8 }, { "amount": 5000, "total": 3.9 } ] }
]
},
{
"network": "bsc", "name": "BNB Smart Chain", "coin": "BNB",
"products": [ { "type": "gas", "unit": "TRANSFER", "minAmount": 1, "maxAmount": 1,
"prices": [ { "amount": 1, "total": 0.2 } ] } ]
},
{
"network": "eth", "name": "Ethereum", "coin": "ETH",
"products": [ { "type": "gas", "unit": "TRANSFER", "minAmount": 1, "maxAmount": 1,
"prices": [ { "amount": 1, "total": 0.5 } ] } ]
}
]
}/balanceYour available balance in TRX, and the address to send TRX to when you want to top it up.
curl https://api.trxzap.com/api/public/v2/balance \
-H "X-API-Key: tzk_your_api_key"{
"status": 200,
"message": null,
"result": {
"available": 429.63,
"currency": "TRX",
"depositAddress": "TN7dr3bNAP8c62TfRSZRcDVfYypnYihDJR",
"minDeposit": 3
}
}/quoteThe exact price of an order before placing it. TRON: type and amount. Gas: the price is held for a few minutes; pass quoteId to /orders to be charged exactly that.
# TRON: any amount
curl -X POST https://api.trxzap.com/api/public/v2/quote \
-H "X-API-Key: tzk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"network": "tron", "type": "energy", "amount": 65000}'
# Gas: the price is held for a few minutes
curl -X POST https://api.trxzap.com/api/public/v2/quote \
-H "X-API-Key: tzk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"network": "bsc"}'{
"status": 200,
"message": null,
"result": {
"network": "bsc",
"type": "gas",
"amount": 0.0000107,
"unit": "BNB",
"total": 0.2,
"quoteId": "de89c459507b41b0b64afb8133f57b94",
"expiresIn": 600
}
}/ordersPlaces an order on any network and pays for it from your balance. TRON: type and amount (the rental lasts one hour). Gas: no amount - enough for one USDT transfer is sent. Keep the returned id.
# TRON energy
curl -X POST https://api.trxzap.com/api/public/v2/orders \
-H "X-API-Key: tzk_your_api_key" \
-H "Content-Type: application/json" \
-d '{"network": "tron", "type": "energy", "address": "TXYZ...", "amount": 65000}'
# TRON bandwidth
-d '{"network": "tron", "type": "bandwidth", "address": "TXYZ...", "amount": 350}'
# Gas on BNB Smart Chain or Ethereum (one USDT transfer; quoteId optional)
-d '{"network": "eth", "address": "0x...", "quoteId": "de89c459507b41b0b64afb8133f57b94"}'{
"status": 200,
"message": "...",
"result": {
"id": "6b1f0e2a-9c3d-4e8f-a1b2-c3d4e5f60718",
"network": "tron",
"type": "energy",
"status": "pending",
"address": "TXYZ...",
"amount": 65000,
"unit": "ENERGY",
"activationFee": 0,
"total": 2.34,
"txHash": null,
"txUrl": null,
"createdAt": "2026-11-18T08:05:04Z"
}
}/orders/{id}One of your orders, whatever its network. Once status is success, txHash / txUrl point to the transaction.
curl https://api.trxzap.com/api/public/v2/orders/6b1f0e2a-9c3d-4e8f-a1b2-c3d4e5f60718 \
-H "X-API-Key: tzk_your_api_key"{
"status": 200,
"message": null,
"result": {
"id": "6b1f0e2a-9c3d-4e8f-a1b2-c3d4e5f60718",
"network": "bsc",
"type": "gas",
"status": "success",
"address": "0x...",
"amount": 0.0000107,
"unit": "BNB",
"activationFee": 0,
"total": 0.2,
"txHash": "0x9f2c...",
"txUrl": "https://bscscan.com/tx/0x9f2c...",
"createdAt": "2026-11-18T08:05:04Z"
}
}/orders?page=1&pageSize=20All your orders on every network in one list, newest first, with paging.
curl "https://api.trxzap.com/api/public/v2/orders?page=1&pageSize=20" \
-H "X-API-Key: tzk_your_api_key"{
"status": 200,
"message": null,
"result": {
"items": [
{ "id": "...", "network": "eth", "type": "gas", "status": "success", "amount": 0.00004, "unit": "ETH", "total": 0.5, ... },
{ "id": "...", "network": "tron", "type": "energy", "status": "success", "amount": 65000, "unit": "ENERGY", "total": 2.34, ... }
],
"total": 42,
"page": 1,
"pageSize": 20
}
}Prices are in TRX and already include your discount. Use POST /quote for an exact total. If a TRON address has never been activated, the activation fee is added to the order (activationFee).
GET /networks live prices for common amounts on every network
POST /quote the exact price of any order before placing it
total = price + activationFee (TRON, only for an address never activated)An order is accepted immediately and usually completed within seconds. Check it with GET /orders/{id} - every 5 to 10 seconds is plenty.
pending — accepted and being delivered; the amount is reserved from your balance. success — delivered; the resource or gas is on the address. failed — could not be delivered; the amount is returned to your balance. refunded — gas that could not be sent; the price was returned to your balance. Errors use standard HTTP status codes, and the message field explains what went wrong.
400 | The request is malformed - for example an unknown network or type, an address that does not match the network, or a missing amount on TRON. |
401 | The X-API-Key header is missing, or the key is wrong or has been revoked. |
404 | The order does not exist, or does not belong to your account. |
422 | The request was understood but refused - for example insufficient balance, or an amount outside the allowed limits. |
429 | Too many requests. Slow down and retry. |
500 | Something went wrong on our side. Retrying later is safe. |
503 | A network or the price feed is temporarily unavailable. Retry shortly. |
v1 keeps working for existing integrations, with its own field names and statuses. New integrations should use v2.
https://api.trxzap.com/api/public/v1
GET /prices GET /balance
POST /orders/energy POST /orders/bandwidth GET /orders/{orderId}
GET /gas/networks POST /gas/quote POST /gas/orders GET /gas/orders/{id}