> ## 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.

# Name a Wallet

> Give an address of your packages your own name

## Name a Wallet

Gives an address of your packages your own name — for example, *Main wallet* — so the list shows whose address it is. The name belongs to the address, not to a package: every package on the address returns it in `label`, including packages you buy later. An address has one name; a new one replaces the old.

### Request body

**address** `string` *required*

TRON address of your packages

**label** `string`

The name, up to 50 characters. Spaces at the ends are trimmed; an empty name removes it.

### Response

**address** `string`

The address from the request.

**label** `string | null`

The saved name; `null` — the name was removed.

> [!NOTE]
>
> The name is seen only by your account and by the team members who have access to it.

### Example

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

```json Response theme={null}
{
  "address": "TYourAddress...",
  "label": "Main wallet"
}
```

### 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 |
| — | `422` | `label` is longer than 50 characters |


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