Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 4.66 KB

File metadata and controls

25 lines (19 loc) · 4.66 KB

WrapEthRequest

Request model for wrapping ETH into WETH.

Example Usage

import { WrapEthRequest } from "@compass-labs/api-sdk/models/components";

let value: WrapEthRequest = {
  amount: 1.5,
  chain: "ethereum",
  sender: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
};

Fields

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.