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

# वॉलेट को नाम दें

> अपने पैकेजों के एड्रेस को अपना नाम दें

## वॉलेट को नाम दें

अपने पैकेजों के किसी एड्रेस को अपना नाम देता है — जैसे *मुख्य वॉलेट* — ताकि सूची में दिखे कि एड्रेस किसका है। नाम एड्रेस का होता है, पैकेज का नहीं: एड्रेस का हर पैकेज, बाद में खरीदे गए भी, इसे `label` में लौटाता है। एक एड्रेस का एक नाम होता है; नया नाम पुराने की जगह लेता है।

### अनुरोध बॉडी

**address** `string` *required*

आपके पैकेजों का TRON एड्रेस

**label** `string`

नाम, अधिकतम 50 अक्षर। किनारों के स्पेस हटा दिए जाते हैं; खाली नाम उसे हटा देता है।

### रिस्पॉन्स

**address** `string`

अनुरोध का एड्रेस।

**label** `string | null`

सहेजा गया नाम; `null` — नाम हटा दिया गया।

> [!NOTE]
>
> नाम केवल आपका खाता और उसकी पहुँच वाले टीम सदस्य देखते हैं।

### उदाहरण

```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": "मुख्य वॉलेट"
  }'
```

```json Response theme={null}
{
  "address": "TYourAddress...",
  "label": "मुख्य वॉलेट"
}
```

### त्रुटियाँ

[मानक रूप](https://docs.tronrental.com/hi/errors.md) में, `detail.error.code` के अंतर्गत लौटाई जाती हैं। इनमें से किसी के भी बाद कुछ नहीं बदला होता।

| कोड | स्थिति | कब |
| - | - | - |
| `PACKAGE_NOT_FOUND` | `404` | एड्रेस पर आपके खाते का कोई पैकेज नहीं है |
| — | `422` | `label` 50 अक्षरों से लंबा है |


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