# createWallet

Creates a wallet object that provides a handler to process asssets deposits and an in-memory wallet management data structure.

## Usage

The example below creates a new wallet management object, and attaches a handler to automatically process assets deposits.

```ts twoslash
import { Rollup } from "@cartesi/rollup";
import { createWallet } from "@deroll/wallet";

// open the rollup device
const rollup = new Rollup();

// create wallet // [!code focus]
const wallet = createWallet(); // [!code focus]

rollup.run({
    advance: wallet.handler, // [!code focus]
});
```

## Returns

Type: `WalletApp`

## Parameters

None
