WrapETH

Utility Actions Plugin - WrapETH

Description

Send ETH and receive wrapped ETH

Method

deposit()

Input Parameters

NamePlugin TypeDescription

value

FctValue

Amount of ETH that is going to get wrapped

Method Parameters

No required parameters

Returned Values

No value returned

Example

Example with initParams

const wrapETH = new Utility.actions.WrapETH({
 chainId: 1,
 initParams: {
   value: "100000000000000000",
   methodParams: {}
 }
})

Example without initParams

const wrapETH = new Utility.actions.WrapETH({ chainId: 1 })

wrapETH.input.set({
   value: "100000000000000000",
   methodParams: {}
})

Last updated