> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mpcvault.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AddWatchAddress

> Register a TRON address for monitoring.

Registers a TRON address for monitoring - see the [TRON Watch Address overview](https://docs.mpcvault.com/api-reference/sweep/tron-watch-address.md) for webhooks and push rules.

Re-adding the same address with the same API token is idempotent, so it is safe to retry.

## Errors

All errors return a JSON object with `code`, `error`, and `reason` fields:

```json theme={null}
{
  "code": 400,
  "error": "Bad Request",
  "reason": "address invalid"
}
```

| Reason | Description |
| - | - |
| `network unsupported` | `network` is missing or not supported |
| `address required` / `address invalid` | Address is missing or not a valid TRON address |
| `unauthenticated` | `x-mtoken` is missing or invalid |
| `webhook not configured` | The API token has no webhook URL configured yet |
| `IP is not allowed` | The request IP is not in the allowlist |
| `internal server error` | Server-side error |


## OpenAPI

````yaml openapi.json POST /v1/sweep/addWatchAddress
openapi: 3.1.0
info:
  title: mpcvault.platform.v1
  version: 0.0.1
servers:
  - url: https://api.mpcvault.com
    description: MPCVault API Server
security:
  - ApiKeyAuth: []
tags:
  - name: mpcvault.platform.v1.PlatformAPI
  - name: mpcvault.sweep.v1.SweepAPI
    description: >-
      Deposit address creation and TRON watch address registration for the Sweep
      product.
paths:
  /v1/sweep/addWatchAddress:
    post:
      tags:
        - mpcvault.sweep.v1.SweepAPI
      summary: AddWatchAddress
      description: >-
        Registers a TRON address for monitoring. No wallet is created, MPCVault
        holds no keys, and no assets are moved. Re-adding the same address with
        the same API token is idempotent.
      operationId: mpcvault.sweep.v1.SweepAPI.AddWatchAddress
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/mpcvault.sweep.v1.AddWatchAddressRequest'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/mpcvault.sweep.v1.AddWatchAddressResponse'
components:
  schemas:
    mpcvault.sweep.v1.AddWatchAddressRequest:
      type: object
      required:
        - network
        - address
      properties:
        network:
          type: string
          description: Network of the address. Supports `TRON`, case-insensitive.
          example: TRON
        address:
          type: string
          description: >-
            TRON address to watch, in base58check form starting with `T`.
            Surrounding whitespace is ignored. Validated and normalized to
            checksum form.
          example: <string>
      description: >-
        The API token must have a webhook configured for the TRON route,
        otherwise the request is rejected.
    mpcvault.sweep.v1.AddWatchAddressResponse:
      type: object
      properties:
        uuid:
          type: string
          description: Identifies the watch record.
          example: <string>
          format: uuid
        address:
          type: string
          description: The registered address in checksum form.
          example: <string>
        network:
          type: string
          example: TRON
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-mtoken
      description: Your API token. Required for all API requests.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.