Skip to content

API Reference

An interactive reference for NETTS API v2, generated from the OpenAPI 3.1 specification. Every operation lists its parameters, request and response schemas, code samples for curl, JavaScript, Python and PHP, and lets you send a test request.

The base URL is https://netts.io/apiv2. The key goes in the X-API-KEY header, and the request IP must be in the key's whitelist.

Hand-written guides

These pages are generated from the specification. The hand-written endpoint guides under API v2 remain the canonical source until the specification has been proof-read against the services — see openapi/README.md in the repository.

Account

Account details and balance.

OperationMethod and path
Rotate the deposit addressPOST /address/rotate
Whether a rotation is queuedGET /address/rotate/pending
Address rotation statusGET /address/rotate/status/{rotation_id}
Account information and balanceGET /userinfo
Withdraw TRX from your balancePOST /withdraw
Withdrawal statusGET /withdraw/status/{orderId}
Configure the withdrawal webhookPOST /withdraw/webhook
Current withdrawal webhook configurationGET /withdraw/webhook
Disable the withdrawal webhookDELETE /withdraw/webhook

Pricing

Current prices for every service.

OperationMethod and path
Energy prices (deprecated)GET /prices
Prices for every serviceGET /pricing

Energy

Ordering energy and working with orders.

OperationMethod and path
Activate a TRON addressPOST /activator
Reclaim energy earlyPOST /energy/reclaim/{orderId}
Batch order for up to 100 addressesPOST /orchestrator
Cancel the addresses of a batch that have not startedPOST /orchestrator/cancel/{idempotencyKey}
Batch progressGET /orchestrator/status/{idempotencyKey}
Details of a 1-hour orderGET /order_check
Order energy for 1 hourPOST /order1h
Order energy for 5 minutesPOST /order5m

Bandwidth

Bandwidth rental. Access is granted by support on request.

OperationMethod and path
Rent bandwidthPOST /bandwidth
Reclaim bandwidth earlyPOST /bandwidth/reclaim/{orderId}
Bandwidth order statusGET /bandwidth/status/{orderId}

Host Mode

Renting energy to your own address pool and reselling it.

OperationMethod and path
Add an address to Host ModePOST /time/add
Remove an address from Host ModePOST /time/delete
Enable infinity modePOST /time/infinitystart
Buy cycles and switch the address onPOST /time/order
Status of all Host Mode addressesPOST /time/status
Status of a single Host Mode addressGET /time/status/{address}
Stop Host Mode for an addressPOST /time/stop

AML

TRON address screening through external AML providers.

OperationMethod and path
Screen an address for AMLPOST /aml
AML check resultGET /aml/{order_id}
Check history for an addressGET /aml/history
AML check price and whether your balance covers itGET /aml/price
List AML providers with pricesGET /aml/providers

Sub-users

Managing sub-users (reseller scheme).

OperationMethod and path
Delete a sub-userDELETE /subuserdel/{user_id}
Create a sub-userPOST /subusergen

USDT

Estimating the cost of a USDT transfer between two addresses.

OperationMethod and path
USDT transfer cost (public, no key)GET /usdt/{sender}&{receiver}
USDT transfer cost (authenticated)POST /usdt/analyze

Balances

Reading TRON balances: current, at a past point, dynamics and period turnover.

OperationMethod and path
Current balances of an addressGET /balances/{address}
Balances at the end of a dateGET /balances/{address}/at
Balances at a block or a momentGET /balances/{address}/at-block
Balance dynamics for one tokenGET /balances/{address}/history
Statement preview for one tokenGET /balances/{address}/statement
Period turnover per tokenGET /balances/{address}/summary

Reports

Statement files built in the background, their status and delivery notifications.

OperationMethod and path
Status of a report orderGET /reports/{order_no}
Download a finished reportGET /reports/{order_no}/download
Queue a statement filePOST /reports/statement
Register a report webhook endpointPOST /reports/webhooks
List your report webhook endpointsGET /reports/webhooks
Read one endpointGET /reports/webhooks/{endpoint_id}
Change the URL or pause an endpointPATCH /reports/webhooks/{endpoint_id}
Delete an endpointDELETE /reports/webhooks/{endpoint_id}
Issue a new signing secretPOST /reports/webhooks/{endpoint_id}/rotate-secret

Webhooks

Notifications NETTS sends to your callback URL.

OperationMethod and path
Register a webhook endpointPOST /webhooks
List your delivery endpointsGET /webhooks
A single delivery endpointGET /webhooks/{id}
Edit a delivery endpointPATCH /webhooks/{id}
Delete a delivery endpointDELETE /webhooks/{id}
Rotate the signing secretPOST /webhooks/{id}/rotate-secret

Outgoing notifications

NETTS calls your server. The formats are described in the specification:

  • delegation.confirmed — Bandwidth order fulfilled
  • bandwidth.delegated — Bandwidth order fulfilled
  • activation.confirmed — Address activated on-chain
  • withdraw.completed — Withdrawal reached a terminal state
  • host.delegation — Host Mode delegation