Address filters tell Off the Hook which on-chain transfers should trigger a delivery for a given subscription. A subscription with no addresses in its filter list never fires — you must add at least one address before deliveries begin. Each address entry has two fields:Documentation Index
Fetch the complete documentation index at: https://docs.offthehook.dev/llms.txt
Use this file to discover all available pages before exploring further.
chainId— a CAIP-2 chain identifier (e.g.,tron:mainnet,tron:nile,tron:shasta)address— a base58check TRON address starting withT
Add or remove specific addresses
PATCH /v1/subscriptions/:id/filters/addresses accepts add and remove arrays in a single request. The operation is atomic per item — each address is independently validated and either applied or skipped. The response includes per-item results so you can see exactly what changed.
results object with three arrays:
| Field | Description |
|---|---|
results.added | Addresses that were successfully added |
results.removed | Addresses that were successfully removed |
results.skipped | Addresses that were not applied, with a reason and optional detail |
Replace the full address list
PUT /v1/subscriptions/:id/filters/addresses replaces the entire address list atomically. All existing addresses are removed and replaced with the list you provide. Send the new list as a JSON array directly in the request body.
results envelope.
List addresses
GET /v1/subscriptions/:id/filters/addresses returns a paginated list of all addresses on the subscription.
nextPageToken as a query parameter to fetch the next page:
nextPageToken is absent from the response, you have reached the last page.
Error codes
| Error | Cause |
|---|---|
invalid_address | The address is not a valid base58check TRON address |
invalid_chain | The chainId value is not a recognized CAIP-2 identifier |
chain_not_enabled | The chain exists but is not enabled for your account |
addresses_limit_exceeded | You have reached the maximum number of addresses allowed per subscription |