# weth

> call weth's smart contract

Latest version **1.0.4** (published 2018-05-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install weth
pnpm add weth
yarn add weth
bun add weth
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2018-05-15 |
| First published | 2018-05-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lamtanphiho |
| Maintainers | lamtanphiho |
| Keywords | weth, withdraw, deposit, smart, contract, web3, ethereum, npm |

## Links

- npm: https://www.npmjs.com/package/weth
- Repository: https://github.com/lamtanphiho/weth
- Homepage: https://github.com/lamtanphiho/weth#readme
- Issues: https://github.com/lamtanphiho/weth/issues
- npm.io page: https://npm.io/package/weth

## Dependencies (1)

- [ethereumjs-tx](https://npm.io/package/ethereumjs-tx.md) ^1.3.4

## Recent versions

- 1.0.4 (latest) — 2018-05-15
- 1.0.3 — 2018-05-15
- 1.0.2 — 2018-05-11
- 1.0.1 — 2018-05-11
- 1.0.0 — 2018-05-11

## README

# weth
call w-eth's smart contract 


## Super simple to use

Require and config: 

```js
const Weth = require('weth');
Weth.config({
    web3: web3, // your web3,
    contractAddress: contractAddress, // weth's contract address
    ownerAddress: ownerAddress // weth's owner address
});

```

## withdraw

UNWRAP WETH to ETH: 

```js
Weth.withdraw(address, privateKeyAddress, amount);
```

## deposit

WRAP ETH to WETH: 

```js
Weth.deposit(address, privateKeyAddress, amount);
```

---
_Source: https://npm.io/package/weth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
