Zora Wow sell token action.

Implements

Constructors

Properties

Constructors

Properties

argsSchema: ZodObject<
    { amountTokensInWei: ZodString; contractAddress: ZodString },
    "strip",
    ZodTypeAny,
    { amountTokensInWei: string; contractAddress: string },
    { amountTokensInWei: string; contractAddress: string },
> = WowSellTokenInput

Schema for validating action arguments

description: string = WOW_SELL_TOKEN_PROMPT

A description of what the action does

func: (
    wallet: Wallet,
    args: { amountTokensInWei: string; contractAddress: string },
) => Promise<string> = wowSellToken

The function to execute for this action

Type declaration

    • (
          wallet: Wallet,
          args: { amountTokensInWei: string; contractAddress: string },
      ): Promise<string>
    • Sells WOW tokens for ETH.

      Parameters

      • wallet: Wallet

        The wallet to sell the tokens from.

      • args: { amountTokensInWei: string; contractAddress: string }

        The input arguments for the action.

      Returns Promise<string>

      A message confirming the sale with the transaction hash.

name: string = "wow_sell_token"

The name of the action