Request model for wrapping ETH into WETH.
import { WrapEthRequest } from "@compass-labs/api-sdk/models/components";
let value: WrapEthRequest = {
amount: 1.5,
chain: "ethereum",
sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
};| Field | Type | Required | Description | Example |
|---|---|---|---|---|
actionType |
string | ➖ | N/A | |
amount |
components.WrapEthRequestAmount | ✔️ | The amount of ETH to wrap. | 1.5 |
chain |
components.WrapEthRequestChain | ✔️ | 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. |