# createWithdrawEtherVoucher

Utility to create a `Voucher` to withdraw ether to a destination address on the base layer.

## Usage

The example below shows how to create a `Voucher` to withdraw 1 ether to the `msgSender` of the an input.

```ts twoslash
import { createApp } from "@deroll/app";
import { createWithdrawEtherVoucher } from "@deroll/wallet";
import { parseEther } from "viem";

// create app
const app = createApp();

const application = "0xab7528bb862fb57e8a2bcd567a2e929a0be56a5e";
app.addAdvanceHandler(async ({ metadata }) => {
    const value = parseEther("1");
    const voucher = createWithdrawEtherVoucher( // [!code focus]
        metadata.msgSender, // [!code focus]
        value, // [!code focus]
    ); // [!code focus]
    await app.createVoucher(voucher);
    return "accept";
});
```

## Returns

Type: `Voucher`

## Parameters

Type: `Address`

Application address.

Type: `Address`

Destination address.

Type: `bigint`

Amount to transfer.
