Request model for unwrapping WETH back to native ETH.
import { UnwrapWethRequest } from "@compass-labs/api-sdk/models/components";
let value: UnwrapWethRequest = {
amount: 1.5,
chain: "ethereum",
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
};| Field | Type | Required | Description | Example |
|---|---|---|---|---|
actionType |
string | ➖ | N/A | |
amount |
components.UnwrapWethRequestAmount | ✔️ | The amount of WETH to unwrap. | 1.5 |
chain |
components.UnwrapWethRequestChain | ✔️ | N/A | |
sender |
string | ✔️ | The address of the transaction sender. | 0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B |
estimateGas |
boolean | ➖ | Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed. |