For the complete documentation index, see llms.txt. This page is also available as Markdown.

WrapEth

Description

Helper action to wrap Ether to WETH9

Notes

Wraps native Eth to WETH9 token. If amount is type(uint256).max wraps whole balance.

Action ID

0x11135183

SDK Action

const wrapEthAction = new dfs.actions.basic.WrapEthAction(
    amount,
    includeEthInTx
);

Action Type

STANDARD_ACTION

Input Parameters

    /// @param amount Amount of ether to wrap
    struct Params {
        uint256 amount;
    }

Return Value

Events and Logs

Last updated