> For the complete documentation index, see [llms.txt](https://sdk.unlockd.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk.unlockd.finance/getting-started/sdk-modules/wallet-module.md).

# Wallet Module

<figure><img src="/files/RUPIJpJ5vBZS1uvCIfwU" alt=""><figcaption><p>Wallet Flow</p></figcaption></figure>

## Types

### ClientOptions

```typescript
export type ClientOptions = {
  network?: Chain
}

export type Chain = 'mainnet' | 'sepolia' | 'localhost'
```

## Functions

### Creating a Wallet

To create an Unlockd abstract wallet, use the `createWallet` function from the `wallet` module:

```typescript
export const createWallet = async (
        options?: ClientOptions
    ):Promise<void>
```

```typescript
const result = await createWallet(options?);
```

Refer to the Wallet Module documentation for more details on the `createWallet` function.

### Retrieving the User's Wallet Address

To retrieve the wallet address of the user, use the `getWallet` function from the `wallet` module:

```typescript
export const getWallet = async (
        options?: ClientOptions
    ): Promise<any>
```

```typescript
const result = await getWallet(options?);
```

Refer to the Wallet Module documentation for more details on the `getWallet` function.
