Skip to content

Address Watch — notifications about your TRON addresses ​

Address Watch follows your TRON addresses and tells you about what happens to them: incoming and outgoing TRX, USDT and other tokens, resource delegation, staking, votes, permission changes, Tether blacklisting — and, separately, network-wide events such as protocol changes and chain parameter proposals.

Notifications go to your HTTPS webhook URL (a signed POST) and/or to Telegram (the Netts bot). Everything can be managed with this API or in the Netts Workspace.

How it fits together:

ObjectWhat it is
SubscriptionFree for up to 10 addresses while your Netts balance is at least 50 TRX; for more addresses, paid monthly in advance from your balance, per slot of addresses. Watching works only while it is active.
AddressA TRON address you watch, with an optional label and tags.
GroupA set of addresses. Three system groups always exist: Default (every active address), Network events (events not tied to an address) and Netts account (account events).
Webhook URLYour HTTPS endpoint; up to 20. Each has its own signing secret.
RuleWhich event of which group goes where (a webhook URL, Telegram or both). One rule = one event.

A typical setup: keep at least 50 TRX on the balance (free plan) or activate the paid subscription → add addresses → add and verify a webhook URL or link Telegram → create rules.

Endpoint base URL ​

https://netts.io/apiv2/watch

Request Headers ​

HeaderRequiredDescription
X-API-KEYYesYour API key from the Netts dashboard. Requests are accepted only from IP addresses in your whitelist, as for every NETTS API.
Content-TypeYes (with a body)application/json
X-Idempotency-KeyFor 8 operationsSee Idempotency. 16–64 characters A-Z a-z 0-9 + / = _ -.

Your account is taken from the API key; you never pass a user id. You can see and change only your own objects — an id of another account answers 404, the same as a missing one.

Limits ​

LimitValue
Requests5 per second and 150 per minute per API key, for all /apiv2/watch/* together
Request bodyup to 1 MB
Response timeup to 5 s; verify and test of a webhook URL up to 20 s
Addresses per request1–500
Webhook URLs20 per account
Groups1,000 per account
Free plan10 active addresses, while the balance is at least 50 TRX
Addresses per slot100,000 active addresses
Delivery historythe last 3 days
Verify / test of a URLonce a minute per URL

Subscription ​

MethodPathWhat it does
GET/subscriptionCurrent state
POST/subscription/activateStart watching: the free plan, or the paid one (charges the first month)
POST/subscription/deactivateStop watching
PUT/subscription/auto-renewTurn auto-renewal on or off
POST/subscription/slotsBuy more slots for the current period

Plans:

PlanAddressesPriceCondition
freeup to 10 activefreeat least 50 TRX on the balance; nothing is charged or held
paid100,000 active per slot100 TRX per slot per month—

Free plan. With at least 50 TRX on the balance, your first request switches the free plan on by itself — no activation call is needed. If the balance falls below 50 TRX, the subscription becomes suspended: requests answer 402 (1004) and notifications stop; addresses and settings stay. After a top-up watching resumes by itself within about a minute. An 11th address answers 409 (4095): switch to the paid plan with POST /subscription/activate and {"plan": "paid"}. When a paid period ends and you watch 10 addresses or fewer with at least 50 TRX on the balance, the subscription moves to the free plan instead of being charged.

Without an active subscription only GET /subscription, POST /subscription/activate, webhook URLs, Telegram, the event catalog, delivery history and the rules of account events are available. A subscription you stopped yourself answers 409 (4094) until you activate it again; with less than 50 TRX on the balance the answer is 402 (1004) and nothing is charged. Addresses stay saved while the subscription is not active, but they are not watched.

  • Activate takes an optional body {"plan": "free"} or {"plan": "paid"}. Without it, the free plan is used when it is allowed (at least 50 TRX, at most 10 active addresses), otherwise the paid one. The paid plan charges the first month for as many slots as your active addresses need (at least one) and returns charged: true with amount_trx, slots, paid_until and order_id; the free plan returns plan: "free" and charged: false. Activating again while the paid period is still running charges nothing (charged: false).
  • Deactivate stops watching at once; the paid period is kept, so activating again before paid_until is free.
  • Auto-renew charges the next month from your balance when the period ends. It is checked about once a minute, so there may be a short gap between paid_until and the renewal.
  • Slots adds slots until paid_until; the price is proportional to the rest of the period, at least 1 TRX. Paid plan only: on the free plan the answer is 409 (4095).
bash
curl https://netts.io/apiv2/watch/subscription -H "X-API-KEY: your_api_key"
json
{
  "status": "active",
  "plan": "paid",
  "period_no": 1,
  "period_start": "2026-11-29T10:00:00Z",
  "paid_until": "2026-12-29T10:00:00Z",
  "slots": 1,
  "limit": 100000,
  "active_addresses": 12,
  "auto_renew": true,
  "price_per_slot_trx": "100",
  "free_address_limit": 10,
  "free_min_balance_trx": "50",
  "applied": true,
  "effective_from": "2026-11-29T10:00:05Z"
}

status is active, inactive (never activated or stopped), expired (the period ended without renewal) or suspended (free plan, the balance is below 50 TRX). plan is free or paid; on the free plan paid_until is null, slots is 0 and limit is 10. Not enough balance answers 402 (1004); buying slots without an active subscription answers 409 (4094). All four changes need an X-Idempotency-Key.

bash
curl -X POST https://netts.io/apiv2/watch/subscription/activate \
  -H "X-API-KEY: your_api_key" \
  -H "X-Idempotency-Key: 9b2f1c4e-7a1d-4c2e-9f3b-5d8a6e0c1b2a"
bash
curl -X POST https://netts.io/apiv2/watch/subscription/slots \
  -H "X-API-KEY: your_api_key" \
  -H "X-Idempotency-Key: 3c8d7e21-5b4a-4f19-8e0d-2a6b9c1f7e43" \
  -H "Content-Type: application/json" \
  -d '{"slots": 1}'

Addresses ​

MethodPathWhat it does
GET/addressesList; filters address, tag, group_id, active (true / false)
POST/addressesAdd 1–500 addresses
GET/addresses/{id}One address
PATCH/addresses/{id}Change label and/or tags
POST/addresses/{id}/enableTurn watching of the address on
POST/addresses/{id}/disableTurn it off (the address stays in your list)
DELETE/addresses/{id}Delete one address (204)
POST/addresses/deleteDelete several: {"ids": [1, 2, 3]} → {"deleted": n}
bash
curl -X POST https://netts.io/apiv2/watch/addresses \
  -H "X-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "addresses": [
      {"address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE", "label": "Hot wallet", "tags": ["hot"]},
      {"address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"}
    ],
    "group_ids": [4]
  }'
json
{
  "created": [{"id": 17, "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE"}],
  "existing": [{"id": 3}]
}
  • Every address is checked first (Base58Check, 34 characters); one bad address rejects the whole request with the field that failed, e.g. addresses[1].address.
  • A repeated address in one request is counted once; an address you already watch is returned in existing and is not changed.
  • label: up to 64 characters or null. tags: up to 20, each 1–32 characters.
  • group_ids: your own groups to put the new addresses into.
  • When the subscription has no free room, the answer is 409 (4095, limit-reached) with slots_needed — buy slots and repeat. On the free plan (info.plan: "free", 10 addresses) switch to the paid plan first.

An address object:

json
{
  "id": 17,
  "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
  "active": true,
  "label": "Hot wallet",
  "tags": ["hot"],
  "group_ids": [4],
  "disabled_reason": null,
  "disabled_at": null,
  "created_at": "2026-11-29T10:00:00Z",
  "updated_at": "2026-11-29T10:00:00Z",
  "applied": true,
  "effective_from": "2026-11-29T10:00:03Z"
}

Groups ​

MethodPathWhat it does
GET/groupsList; counts=false leaves out address_count (null), faster for long lists
POST/groupsCreate: {"name": "...", "tags": [...]} → 201
GET/groups/{id}One group
PATCH/groups/{id}Change name, enabled, tags
DELETE/groups/{id}Delete an empty group with its rules (204); a group with addresses is refused (400) — remove its addresses first
GET/groups/{id}/addressesAddresses of the group
POST/groups/{id}/addressesAdd your addresses: {"ids": [...]} → {"added": n}
POST/groups/{id}/addresses/removeRemove them: {"ids": [...]} → {"removed": n}
  • Default contains every active address automatically; you cannot add or remove members.
  • Network events holds no addresses; it is where rules for network-wide events live.
  • Netts account holds no addresses; it is where rules for account events live.
  • The names of the system groups cannot be changed and they cannot be deleted; they can be turned off (enabled: false). Your own groups can be renamed, turned off and deleted.
  • System groups appear with your first change (for example, the first address or the activation).
  • Creating a group needs an X-Idempotency-Key.
json
{
  "id": 4,
  "is_system": false,
  "system_kind": null,
  "name": "Exchange wallets",
  "enabled": true,
  "tags": [],
  "address_count": 12,
  "created_at": "2026-11-29T10:00:00Z",
  "updated_at": "2026-11-29T10:00:00Z",
  "applied": true,
  "effective_from": "2026-11-29T10:00:02Z"
}

system_kind is addresses for Default, feed for Network events, account for Netts account and null for your own groups.


Rules ​

MethodPathWhat it does
GET/rulesList; filters group_id, event_code, endpoint_id
POST/rulesCreate → 201
GET/rules/{id}One rule
PATCH/rules/{id}Change endpoint_id, telegram, confirmations, balances, min_amount, params, enabled
DELETE/rules/{id}Delete (204)
bash
curl -X POST https://netts.io/apiv2/watch/rules \
  -H "X-API-KEY: your_api_key" \
  -H "X-Idempotency-Key: 6a1e0b9c-4d2f-4e8a-b7c3-1f5d9e2a8c40" \
  -H "Content-Type: application/json" \
  -d '{
    "group_id": 1,
    "event_code": "usdt.in",
    "endpoint_id": 5,
    "telegram": true,
    "confirmations": false,
    "min_amount": {"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t": "100000000"}
  }'
FieldMeaning
group_idYour group. Not needed for network events (scope: feed): they always go to Network events.
event_codeOne event from GET /events. To watch several events, create a rule for each.
endpoint_idA verified webhook URL, or null.
telegramtrue — also to Telegram. A rule needs a URL, Telegram or both.
confirmationstrue — also send <event>.confirmed when the block is final (about a minute later).
balancestrue — add the current balances of the address (TRX, USDT and the transferred token) to the notification. Transfer events only: trx.*, usdt.*, trc20.*, trc10.*. Off by default: with it, each event asks the node. See Address balance below.
min_amountThresholds, one per token: a transfer below its token's threshold is not sent. See below.
enabledtrue by default.

min_amount maps a token to the smallest amount that is sent, in the token's smallest units, as a string of digits. Keys: TRX (1 TRX = 1000000), trc10:<token id>, or a TRC20 contract address (USDT is TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t, 1 USDT = 1000000). Each token has its own threshold, so one map can hold TRX and USDT at once. Left out, the event's default is used: 1 TRX for trx.in, 1 USDT for usdt.in, none for other events.

Balance below a threshold. The event balance.below sends a message when the balance of an address falls below the threshold of the rule: "params": {"token": "USDT", "below": "100"} — TRX or USDT, the threshold in whole tokens. The balance is read when the address is taken into work and then only after a movement of the address, at most once per 30 seconds per address, so a busy wallet does not load the node. One message per fall; the next one comes after the balance is back at or above the threshold. The body carries balance (amount, amount_raw), below, token and at (when the balance was read). min_amount, confirmations and balances do not apply to it.

  • The same rule twice (same group, event and channels) is refused with 400 — such a rule already exists.
  • group_id and event_code cannot be changed; create another rule instead.
  • Creating a rule needs an X-Idempotency-Key.

Webhook URLs ​

MethodPathWhat it does
GET/endpointsList (secrets are never returned)
POST/endpointsAdd: {"url": "https://..."} → 201 with the secret, shown once
GET/endpoints/{id}One URL
PATCH/endpoints/{id}Change the URL: {"url": "https://..."}
POST/endpoints/{id}/verifyProve that the URL is yours
POST/endpoints/{id}/testSend a test delivery
POST/endpoints/{id}/rotate-secretNew secret (the old one stops working)
POST/endpoints/{id}/enable · /disableTurn deliveries on / off
POST/endpoints/{id}/resumeResume a URL paused after failures
DELETE/endpoints/{id}Delete (204)

URL rules: https only; port 443 or 8443; a domain name (not an IP address); no user:password@ and no #fragment; up to 2048 characters. The address the name resolves to must be public.

Verification. A new URL receives events only after it is verified. verify sends a signed POST with {"event": "endpoint.verify", "endpoint_id": 5, "code": "..."}; your server must answer 2xx and put the same code in the response body. The answer is {"verified": true} or false with http_status and error_category. Changing the URL resets verification; the secret stays the same; the same URL again changes nothing.

Test. test sends {"event": "endpoint.test", "endpoint_id": 5, "test": true, "sent_at": "..."} to a verified, enabled URL and answers delivered, http_status, error_category and latency_ms. Verify and test share the limit of once a minute per URL (429, 4291, with Retry-After).

Adding a URL and creating a new secret need an X-Idempotency-Key; repeating with the same key returns the same secret.

json
{
  "id": 5,
  "url": "https://hooks.example.com/netts",
  "url_revision": 1,
  "active": true,
  "verified": true,
  "verified_at": "2026-11-29T10:05:00Z",
  "paused_until": null,
  "fail_streak": 0,
  "last_success_at": "2026-11-29T11:00:00Z",
  "created_at": "2026-11-29T10:00:00Z",
  "updated_at": "2026-11-29T10:05:00Z",
  "applied": true,
  "effective_from": "2026-11-29T10:05:02Z"
}

Webhook deliveries ​

Every notification is an HTTPS POST of JSON to your URL with these headers:

HeaderValue
X-Netts-EventEvent code, e.g. usdt.in or usdt.in.confirmed
X-Netts-DeliveryDelivery number; the same on every retry of this delivery
X-Netts-TimestampUnix time in seconds when this attempt was signed
X-Netts-Signaturesha256=<hex> — HMAC-SHA256 of "<timestamp>." + raw body, key = the URL's secret
User-Agentnetts-address-watch/1

Check the signature on the raw request body, before parsing JSON:

python
import hashlib, hmac, time

def valid(secret: str, headers: dict, raw_body: bytes) -> bool:
    ts = headers["X-Netts-Timestamp"]
    if abs(time.time() - int(ts)) > 300:          # reject old replays
        return False
    expected = "sha256=" + hmac.new(secret.encode(), ts.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, headers["X-Netts-Signature"])

Answer 2xx within 8 seconds. Any other answer or a timeout is retried after 1 s, 5 s, 30 s, 2 min, 10 min, 30 min and 1 h; after that the delivery is marked dead. After 20 failures in a row the URL is paused (from 1 hour, up to 24 hours); POST /endpoints/{id}/resume resumes it. Redirects are not followed.

Process each notification once. A retry has the same body and X-Netts-Delivery; only the timestamp and the signature change. Use these fields:

FieldUse
delivery_idIgnore a delivery you have already processed
event_idThe same logical event across event, .confirmed, .reverted and a repeated appearance
event_seqGrows with every change of the event; apply only a larger event_seq than the one you have — notifications may arrive out of order
kindevent, confirmed or reverted

Lifecycle. The first notification (kind: event, confirmed: false) comes about half a second after the block. If the rule has confirmations: true, <event>.confirmed follows when the block is final (about a minute). If the transaction drops out of the chain, <event>.reverted comes with the data of the dropped appearance, so you can undo it. If it appears again in another block, a new event comes with the new block data.

A delivery of usdt.in (keys arrive sorted alphabetically; shown grouped here):

json
{
  "delivery_id": 123456,
  "event": "usdt.in",
  "kind": "event",
  "state": "observed",
  "confirmed": false,
  "event_id": "24ca3d0b868a7c5d480174297aaaa4b3482c01bece72a96b3f4db84ee0aab4fe:log0:usdt.in:TSQoagQTDTiXzRn5sEZUiz3rtAsHhnw4cc",
  "event_seq": 1,
  "occurrence_id": "7ea13a0088378a11e3d95b89ddbcc54c7e55711dce2a75dcc9f0e8f9bd489fe2",
  "scope": "address",
  "address": "TSQoagQTDTiXzRn5sEZUiz3rtAsHhnw4cc",
  "label": null,
  "tags": [],
  "groups": [{"id": 1, "name": "Default", "tags": []}],
  "direction": "in",
  "counterparty": "TAr7qDkrT7KVD5SBo25qcvhJWNLZ3Hpcnq",
  "from": "TAr7qDkrT7KVD5SBo25qcvhJWNLZ3Hpcnq",
  "to": "TSQoagQTDTiXzRn5sEZUiz3rtAsHhnw4cc",
  "token": {"type": "trc20", "contract": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "symbol": "USDT",
            "name": "Tether USD", "decimals": 6, "verified": true},
  "amount_raw": "792000000",
  "amount": "792",
  "amount_usd": "792",
  "usd_rate": {"quote": "USDT", "price": "1", "source": "usdt_1to1", "fx_snapshot_id": null, "valuation_at": null},
  "details": {"source_kind": "log", "log_index": 0},
  "block": {"number": 88419709, "hash": "0000000005452d7de6008d3a0de35bf0d71745d516ec60d8e0f0d7f7aaed967b",
            "witness": "TBsyKdNsCKNXLgvneeUJ3rbXgWSgk6paTM", "time": "2026-11-29T06:24:15Z"},
  "tx": {"id": "24ca3d0b868a7c5d480174297aaaa4b3482c01bece72a96b3f4db84ee0aab4fe", "index_in_block": 0,
         "contract_type": "TriggerSmartContract", "result": "SUCCESS", "receipt_result": "SUCCESS",
         "permission_id": 0, "signers": ["TAr7qDkrT7KVD5SBo25qcvhJWNLZ3Hpcnq"], "memo_text": null, "memo_hex": null,
         "fee_limit_sun": 100000000, "expiration": "2026-11-29T06:24:39Z", "timestamp": "2026-11-29T06:23:40.386000Z"},
  "cost": {"fee_sun": 345000, "energy_usage_total": 130285, "energy_from_stake_or_rent": 130284,
           "energy_burned_sun": 0, "origin_energy_usage": 1, "energy_penalty_total": 100635,
           "bandwidth_used": 0, "bandwidth_burned_sun": 345000},
  "explorer_url": "https://tronscan.org/#/transaction/24ca3d0b868a7c5d480174297aaaa4b3482c01bece72a96b3f4db84ee0aab4fe",
  "source": "scanner",
  "confirmations": false
}
  • amount is in whole tokens, amount_raw in the smallest units.
  • amount_usd is the dollar equivalent at the time of processing (USDT 1:1); null when no fresh rate exists.
  • details carries the fields of the specific event (for delegation, resource; for blacklisting, the request and its signatures).
  • All times are UTC.

Address balance. A rule with balances: true adds one field to the notification:

json
"balances": {
  "at": "2026-11-29T06:24:16Z",
  "items": [
    {"token": {"type": "trx", "symbol": "TRX", "name": "Tronix", "decimals": 6, "verified": true},
     "amount_raw": "1520400000", "amount": "1520.4"},
    {"token": {"type": "trc20", "contract": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "symbol": "USDT",
               "name": "Tether USD", "decimals": 6, "verified": true},
     "amount_raw": "8150000000", "amount": "8150"}
  ]
}
  • items — always TRX and USDT; for a TRC10 or another TRC20 transfer, also that token. When the token's decimals are unknown, amount is null: use amount_raw.
  • at — when the balance was read (UTC).
  • In Telegram the message gets one more line, e.g. 💰 Balance: 1520.4 TRX · 8150 USDT.
  • The node is asked for every such event, so the notification may come a little later: usually tens of milliseconds, at most 1 second. If the node does not answer in time, balances is null and the notification goes out without waiting longer.

The balance may differ from the balance right after this transaction

The balance is read from the node when the block is processed: the blockchain gives only the current balance, not the balance after a given transaction. If the address has several transactions in the same block or in the next blocks, the balance may already include them. For outgoing transfers the TRX balance also reflects the fee burned. For exact accounting use amount and the history of the address.

Blacklist events. Every usdt.blacklist.* and blacklist_feed.* notification carries balances of the blacklisted address, without the rule option: TRX, USDT and USDD (TXDk8mbtRbXeYuMNS83CfKPaYYT8XWv9Hz), plus the old USDD 1.0 (TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn) when it is not zero. After usdt.blacklist.added the USDT is still on the address but frozen; after usdt.blacklist.funds_destroyed it is 0. In Telegram: 💰 Balance: 35.202599 TRX · 311769.092106 USDT · 0 USDD.


Telegram ​

MethodPathWhat it does
GET/telegramLink state: linked, enabled, lang, blocked, linked_at
POST/telegram/linkOne-time link to the Netts bot: {"url": "https://t.me/...", "expires_in_s": 600}
PATCH/telegramenabled and/or lang (two letters)
DELETE/telegramUnlink
GET/telegram/service-prefsService messages and whether each is on
PUT/telegram/service-prefsTurn them on / off: {"subscription.charged": false}

Service messages: subscription.charged, subscription.expiring, subscription.expired, subscription.renew_failed, subscription.free_started, subscription.free_suspended, subscription.free_resumed, endpoint.paused, endpoint.verify_failed, queue.backlog, address.overload_warning, address.auto_disabled, addresses.limit_reached; all are on by default.

Open the link from POST /telegram/link in Telegram within 10 minutes and press Start: the bot answers that Telegram is linked. After unlinking, only a new link links again. Messages come in the language of the link (lang): English, Russian, Ukrainian, Chinese, Korean, Spanish, Portuguese, Turkish, Vietnamese or Indonesian; any other language gets English.


Events and delivery history ​

MethodPathWhat it does
GET/eventsCatalog of event types: code, scope, title, enabled
GET/events/{event_id}One of your events, with its first deliveries
GET/deliveriesDelivery history, newest first; filters endpoint_id, channel (webhook / telegram), status, event_id

The catalog is the source of truth — new event types appear there without a new API version. Events of addresses have scope: address; network events have scope: feed and go to the Network events group; events of your Netts account have scope: account and go to the Netts account group (Account events).

GroupCodes
Transferstrx.in, trx.out, usdt.in, usdt.out, trc10.in, trc10.out, trc20.in, trc20.out (verified tokens)
Resourcesdelegate.in, delegate.out, undelegate.in, undelegate.out
Staking and votesstake.freeze, stake.unfreeze, stake.withdraw, stake.unfreeze_cancelled, vote.cast, vote.reward_claimed
Accountaccount.permission_changed, account.activated
Tether blacklist of your addressusdt.blacklist.submitted, .added, .revoked, .failed, .removal_submitted, .removed, .destroy_submitted, .funds_destroyed
Network events (feed)blacklist_feed.submitted, .added, .removed, .funds_destroyed; network.proposal.created, .approved, .deleted; tron.protocol.changed
Address balancebalance.below
Your Netts account (account)netts.deposit.credited, .not_credited; netts.withdraw.created, .completed, .failed; netts.balance.low — see Account events

A delivery: delivery_id, event_id, kind, event_seq, channel, endpoint_id, status, attempts, http_status, error_category, created_at, finished_at. status is one of pending, deferred, sending, delivered, dead, cancelled, unknown, retention_expired. The body of your server's response is never stored or shown.


Lists and pages ​

Lists answer {"items": [...], "next_cursor": "...", "limit": 100}. Pass next_cursor as cursor to get the next page; null means the end. limit is 1–500 (100 by default). A cursor belongs to its list and filters: using it with other filters or another list answers 400.

Saved and applied ​

A 200 / 201 of a change means saved. The change starts working within seconds. Objects show it with applied and effective_from: applied: true — the current settings are in force since effective_from; false — not yet.

Idempotency ​

These operations need X-Idempotency-Key: activate, deactivate, auto-renew, slots, create group, create rule, add webhook URL, new secret. Use a new key for every new operation; repeat the same key when you are not sure the first request was done (a timeout, 503 with 5041): you get the result of the first request, and nothing is done or charged twice. The same key with other parameters answers 409 (4093); an expired key answers 409 (4096). After a refusal such as 402, top up and use a new key.

Errors ​

Errors are RFC 9457 application/problem+json with a numeric code:

json
{
  "type": "https://doc.netts.io/api/v2/errors/limit-reached",
  "title": "Subscription limit reached",
  "status": 409,
  "detail": "address limit reached",
  "instance": "/apiv2/watch/addresses",
  "code": 4095,
  "request_id": "0f5b6c1e-3d2a-4b8e-9a7c-2e1d4f6a8b90",
  "info": {"slots": 1, "limit": 100000, "active": 100000, "adding": 10, "slots_needed": 2}
}
HTTPcodeMeaning
4004000Invalid JSON
4004001Validation failed; errors lists the fields
4014010 / 4011No API key / key or IP not allowed
4021004Not enough balance (the free plan needs at least 50 TRX)
4044042Not found (or belongs to another account)
4094093Idempotency key reused for another request
4094094The subscription is not active
4094095Address limit reached (info.slots_needed; info.plan is free on the free plan)
4094096Idempotency key expired
4134131Request body too large
4294291Verify / test too often (Retry-After)
5005000Internal error (with request_id)
5035038 / 5039Temporarily unavailable — repeat in a second (Retry-After)
5035041The result of a change is unknown — repeat with the same X-Idempotency-Key, or check with GET

Requests over the rate limit get 429 and a missing or unknown API key gets 401 from the API gateway, in its own short JSON format.