Wrap ETH to WETH on Base action.

Implements

Constructors

Properties

Constructors

Properties

argsSchema: ZodObject<
    { amountToWrap: ZodString },
    "strip",
    ZodTypeAny,
    { amountToWrap: string },
    { amountToWrap: string },
> = WrapEthInput

Schema for validating action arguments

description: string = WRAP_ETH_PROMPT

A description of what the action does

func: (wallet: Wallet, args: { amountToWrap: string }) => Promise<string> = wrapEth

The function to execute for this action

Type declaration

    • (wallet: Wallet, args: { amountToWrap: string }): Promise<string>
    • Wraps ETH to WETH

      Parameters

      • wallet: Wallet

        The wallet to create the token from.

      • args: { amountToWrap: string }

        The input arguments for the action.

      Returns Promise<string>

      A message containing the wrapped ETH details.

name: string = "wrap_eth"

The name of the action