# Check an address

`POST /api/check-address` · Optional key

An address as the chain sees it now: activation, balances, energy and bandwidth, and screening.

Reads an address live from the chain: activation, TRX and USDT balance, the energy and bandwidth on it now, wallet or contract, and screening against Tether's USDT blacklist and the OFAC list. `canServe` tells you whether an order for it would go through.

## Request

Base URL: `https://feebolt.com`. Works without a key (per-IP limits). With an API key the limits are per key and higher.

### Body parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | string | yes | A TRON address, starting with T. |

## Examples

```bash
# Optional: add -H "Authorization: Bearer $FEEBOLT_API_KEY" for per-key limits
curl -X POST https://feebolt.com/api/check-address \
  -H "content-type: application/json" \
  -d '{"address":"TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs"}'
```

```js
const res = await fetch("https://feebolt.com/api/check-address", {
  method: "POST",
  headers: {
    // optional: Authorization: `Bearer ${process.env.FEEBOLT_API_KEY}`,
    "content-type": "application/json",
  },
  body: JSON.stringify({
    "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(data.message);
```

```python
import requests

r = requests.post(
    "https://feebolt.com/api/check-address",
    json={
        "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs"
    },
)
r.raise_for_status()
data = r.json()
```

## Response: 200 OK

The address now.

```json
{
  "address": "TKHuVq1oKVruCGLvqVexFs6dawKv6fQgFs",
  "activated": true,
  "holdsUsdt": true,
  "usdtBalance": 8963.77,
  "trxBalance": 12.4,
  "energyNow": 0,
  "bandwidthNow": 600,
  "freeBandwidthNow": 600,
  "isContract": false,
  "blacklisted": false,
  "canServe": true,
  "screening": {
    "ok": true,
    "complete": true
  }
}
```

### Notable fields

| Name | Type | Description |
| --- | --- | --- |
| `activated` | boolean | False until the address first receives TRX. Orders need an activated address (or the activation add-on). |
| `energyNow` | integer | Energy already on the address. 64,285 or more covers a transfer to a holder. |
| `canServe` | boolean | Activated, a wallet (not a contract), and screening passed. |
| `screening.complete` | boolean | False if a list couldn't be read just now; the order screens again. |

## Errors

| HTTP | error | When |
| --- | --- | --- |
| 400 | `bad_request` | The body isn't a JSON object, or is over 4 KB. |
| 400 | `bad_address` | address is missing, not a TRON address, or fails its checksum. |
| 429 | `rate_limited` | Too many calls (per IP, or per key with a key). Wait for Retry-After seconds. |
| 502 / 503 | `upstream` | The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds. |

## Rate limits

- Without a key: 20 at once, then 1 every 5 s, per IP.
- With an API key: 100 at once, then 1 per second, per key.

---

HTML: https://feebolt.com/developers/check-address/ · OpenAPI: https://feebolt.com/developers/openapi.json · All docs as one Markdown file: https://feebolt.com/developers/full.md
