weth
v1.0.4
Published
call weth's smart contract
Downloads
3
Maintainers
Readme
weth
call w-eth's smart contract
Super simple to use
Require and config:
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:
Weth.withdraw(address, privateKeyAddress, amount);
deposit
WRAP ETH to WETH:
Weth.deposit(address, privateKeyAddress, amount);