# Get Wallet

Retrieve the details of a specific wallet by its UUID.

## Overview

Use this endpoint to fetch full details for a single wallet — its chain, address, label, primary status, and whether it's a watch-only or testnet wallet. This is useful on wallet detail screens or before initiating a transaction when you need to confirm the wallet's chain and address.

### `GET /v1/wallets/{id}`

Authentication: bearer token required.

Returns full details for the specified wallet.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Wallet UUID |

**Responses**

`200` OK

```json
{
  "id": "wallet-uuid",
  "chain": "polygon",
  "address": "0xAbCd...",
  "label": "My MATIC Wallet",
  "walletType": "managed",
  "isPrimary": false,
  "isWatchOnly": false,
  "isTestnet": false,
  "created_at": "2024-01-15T10:00:00Z"
}
```

`404` Not Found

```json
{ "detail": "Wallet not found" }
```

## Implementation

```javascript
async function getWallet(token, walletId) {
  const res = await fetch(
    `https://api.aureahub.com/v1/wallets/${walletId}`,
    { headers: { Authorization: `Bearer ${token}` } }
  );
  if (res.status === 404) throw new Error('Wallet not found');
  if (!res.ok) throw new Error('Failed to fetch wallet');
  return res.json();
}

// Usage: confirm chain before sending
const wallet = await getWallet(token, walletId);
console.log(`Sending on ${wallet.chain} from ${wallet.address}`);
```

---

Web version: https://docs.aureahub.com/#wallets-get
