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

# Managing Wallets

> Tenderly SDK का उपयोग करके wallets को जोड़ने, अपडेट करने, हटाने, और प्राप्त करने के लिए इन कोड स्निपेट उदाहरणों का उपयोग करें।

[Tenderly SDK](/platform/sdk/introduction) आपके project से जुड़े wallets का प्रबंधन करने के लिए एक **`WalletRepository`** क्लास प्रदान करता है। **`WalletRepository`** आपको wallets जोड़ने, अपडेट करने, और हटाने की अनुमति देता है।

एक बार जब आप Tenderly SDK इनिशियलाइज़ कर लेते हैं, तो आप **`WalletRepository`** इंस्टेंस को एक्सेस करने के लिए **`wallets`** namespace का उपयोग कर सकते हैं। समकक्ष contract ऑपरेशन्स के लिए, [Managing Contracts](/platform/sdk/managing-contracts) देखें।

### एक wallet जोड़ना

एक नया wallet जोड़ने के लिए, **`wallets`** namespace की **`add`** मेथड का उपयोग करें:

```jsx title="example.jsx" showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
try {
  const walletAddress = '0x742d35Cc6634C0532925a3b844Bc454e4438f44e';
  const addedWallet = await tenderly.wallets.add(walletAddress, {
    displayName: 'My Wallet',
  });
  console.log('Added wallet:', addedWallet);
} catch (error) {
  console.error('Error adding wallet:', error);
}
```

### एक wallet अपडेट करना

एक मौजूदा wallet को अपडेट करने के लिए, **`wallets`** namespace की **`update`** मेथड का उपयोग करें:

```jsx title="example.jsx" showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
try {
  const walletAddress = '0x742d35Cc6634C0532925a3b844Bc454e4438f44e';
  const updatedWallet = await tenderly.wallets.update(walletAddress, {
    displayName: 'My Wallet',
  });
  console.log('Updated wallet:', updatedWallet);
} catch (error) {
  console.error('Error updating wallet:', error);
}
```

### एक wallet हटाना

एक wallet हटाने के लिए, **`wallets`** namespace की **`remove`** मेथड का उपयोग करें:

```jsx title="example.jsx" showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
try {
  const walletAddress = '0x742d35Cc6634C0532925a3b844Bc454e4438f44e';
  await tenderly.wallets.remove(walletAddress);
  console.log('Wallet removed successfully');
} catch (error) {
  console.error('Error removing wallet:', error);
}
```

### Wallets प्राप्त करना

अपने project से जुड़े wallets प्राप्त करने के लिए, **`wallets`** namespace की **`getAll`** मेथड का उपयोग करें:

```jsx title="example.jsx" showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
try {
  const allWallets = await tenderly.wallets.getAll();
  console.log('All wallets:', allWallets);
} catch (error) {
  console.error('Error fetching wallets:', error);
}
```

### एक अकेला wallet प्राप्त करना

एक अकेला wallet उसकी ID से प्राप्त करने के लिए, **`wallets`** namespace की **`get`** मेथड का उपयोग करें:

```jsx title="example.jsx" showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
try {
  const walletAddress = '0x742d35Cc6634C0532925a3b844Bc454e4438f44e';
  const wallet = await tenderly.wallets.get(walletAddress);
  console.log('Fetched wallet:', wallet);
} catch (error) {
  console.error('Error fetching wallet:', error);
}
```
