NEW

Developer Passes are now available for Chainlink SmartCon. Get yours today.

WETH9 API reference

WETH9

The WETH9 contract for Wrapped Ether is included in Chainlink Local to help simulate transactions that use native token payments.

name

string name

symbol

string symbol

decimals

uint8 decimals

Approval

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

Transfer

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

Deposit

event Deposit(address dst, uint256 wad)

Withdrawal

event Withdrawal(address src, uint256 wad)

balanceOf

mapping(address => uint256) balanceOf

allowance

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

receive

receive() external payable

_deposit

function _deposit() internal

deposit

function deposit() external payable

withdraw

function withdraw(uint256 wad) external

totalSupply

function totalSupply() public view returns (uint256)

approve

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

transfer

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

transferFrom

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

Stay updated on the latest Chainlink news