get_weth_contract

Documentation for eth_defi.token.get_weth_contract function.

get_weth_contract(web3, name='1delta/IWETH9.json')

Get WETH9 contract for the chain

  • See WETH9 contract

  • WETH9 is different contract with different functions on different chain

Parameters
  • web3 (web3.main.Web3) – Web3 instance

  • name (str) – Alternative implementation.

Returns

WETH token details

Return type

web3.contract.contract.Contract