# WETH9 v0.2.4 API Reference
Source: https://docs.chain.link/chainlink-local/api-reference/v0.2.4/weth9

> For the complete documentation index, see [llms.txt](/llms.txt).

> **NOTE: Integrate Chainlink Local into your project**
>
> ### npm
>
> If you use [NPM](https://www.npmjs.com/), install the [@chainlink/local NPM
> package](https://www.npmjs.com/package/@chainlink/local):
>
> ```shell
> npm install @chainlink/local@0.2.4
> ```
>
> ### yarn
>
> If you use [Yarn](https://yarnpkg.com/), install the [@chainlink/local NPM
> package](https://www.npmjs.com/package/@chainlink/local):
>
> ```shell
> yarn add @chainlink/local@0.2.4
> ```
>
> ### foundry
>
> If you use [Foundry](https://book.getfoundry.sh/):
>
> ```shell
> forge install smartcontractkit/chainlink-local@v0.2.4
> ```
>
> and then set remappings to: `@chainlink/local/=lib/chainlink-local/` in either `remappings.txt` or `foundry.toml` file
>
> ### RemixIDE
>
> Import the `CCIPLocalSimulator` contract from the `@chainlink/local` package:
>
> ```solidity
> import {CCIPLocalSimulator} from "@chainlink/local@0.2.4/src/ccip/CCIPLocalSimulator.sol";
> ```

## WETH9

Wrapped Ether implementation.

[WETH9](https://github.com/smartcontractkit/chainlink-local/blob/v0.2.4/src/shared/WETH9.sol)

## Variables

### allowance

```solidity
mapping(address => mapping(address => uint256)) allowance
```

### balanceOf

```solidity
mapping(address => uint256) balanceOf
```

### decimals

```solidity
uint8 decimals
```

### name

```solidity
string name
```

### symbol

```solidity
string symbol
```

## Events

### Approval

```solidity
event Approval(address src, address guy, uint256 wad)
```

### Deposit

```solidity
event Deposit(address dst, uint256 wad)
```

### Transfer

```solidity
event Transfer(address src, address dst, uint256 wad)
```

### Withdrawal

```solidity
event Withdrawal(address src, uint256 wad)
```

## Functions

### \_deposit

```solidity
function _deposit() internal
```

### approve

```solidity
function approve(address guy, uint256 wad) public returns (bool)
```

### deposit

```solidity
function deposit() external payable
```

### receive

```solidity
receive() external payable
```

### totalSupply

```solidity
function totalSupply() public view returns (uint256)
```

### transfer

```solidity
function transfer(address dst, uint256 wad) public returns (bool)
```

### transferFrom

```solidity
function transferFrom(address src, address dst, uint256 wad) public returns (bool)
```

### withdraw

```solidity
function withdraw(uint256 wad) external
```