Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 4.68 KB

File metadata and controls

25 lines (19 loc) · 4.68 KB

UnwrapWethRequest

Request model for unwrapping WETH back to native ETH.

Example Usage

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

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

Fields

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.