# 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 { Rollup } from "@cartesi/rollup";
import { createWithdrawEtherVoucher } from "@deroll/wallet";
import { parseEther } from "viem";

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

const application = "0xab7528bb862fb57e8a2bcd567a2e929a0be56a5e";
rollup.run({
    advance: ({ msgSender }) => {
        const value = parseEther("1");
        const voucher = createWithdrawEtherVoucher( // [!code focus]
            msgSender, // [!code focus]
            value, // [!code focus]
        ); // [!code focus]
        rollup.emitVoucher(voucher);
        return true;
    },
});
```

## Returns

Type: `Voucher`

## Parameters

Type: `Address`

Application address.

Type: `Address`

Destination address.

Type: `bigint`

Amount to transfer.
