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

# Archive Wallet

> Put the closed packages of an address away into the archive

## Archive Wallet

Moves your account's **closed** packages on the address into the archive: the dashboard shows them under *Archive* instead of the main list. Closed are `completed`, `expired`, `cancelled` and `failed_refunded`; a package that is active, paused, awaiting payment or activation stays in the main list.

Nothing else changes: the packages, their history and charges stay as they are, and [List Packages](https://docs.tronrental.com/api-reference/transfer-packages/list.md) still returns them, with `archived_at` set. A package you buy later on the address is in the main list. Bring the wallet back with [Restore Wallet](https://docs.tronrental.com/api-reference/transfer-packages/restore.md).

### Request body

**address** `string` *required*

TRON address whose closed packages to archive

### Response

**address** `string`

The address from the request.

**archived** `boolean`

Always `true`.

**packages** `number`

How many packages went into the archive now; `0` — nothing to archive (no closed package, or all already archived).

### Example

```bash theme={null}
curl -X POST https://api.tronrental.com/v1/transfer-packages/archive \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "TYourAddress..."
  }'
```

```json Response theme={null}
{
  "address": "TYourAddress...",
  "archived": true,
  "packages": 3
}
```

### Errors

Returned in the [standard shape](https://docs.tronrental.com/errors.md), under `detail.error.code`. After any of them nothing has changed.

| Code | Status | When |
| - | - | - |
| `PACKAGE_NOT_FOUND` | `404` | Your account has no package on the address |


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