> 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

The Wallet module provides functionality for creating and managing Unlockd abstract wallets.

<figure><img src="https://2398861552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBIiwmyAPmsS6IKhOGacE%2Fuploads%2FBCsBauFdsPnOrzs24sJK%2Fwallet.jpg?alt=media&amp;token=f60b6b41-96e2-4ff9-b2f5-932435965c4d" 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.
