UnwrapETH

Utility Actions Plugin - UnwrapETH

Description

Unwrap wETH and receive ETH

Method

withdraw()

Input Parameters

No required input parameters

Method Parameters

NamePlugin TypeDescription

amount

FctValue

Amount that will be unwrapped

Returned Values

No value returned

Example

Example with initParams

const unwrapETH = new Utility.actions.UnwrapETH({
 chainId: 1,
 initParams: {
   methodParams: {
     amount: "100000000000000000"
   }
 }
})

Example without initParams

const unwrapETH = new Utility.actions.UnwrapETH({ chainId: 1 })

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

Last updated