Mint NFT action.

Implements

Constructors

Properties

Constructors

Properties

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

Schema for validating action arguments

description: string = MINT_NFT_PROMPT

A description of what the action does

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

The function to execute for this action

Type declaration

    • (
          wallet: Wallet,
          args: { contractAddress: string; destination: string },
      ): Promise<string>
    • Mints an NFT (ERC-721) to a specified destination address onchain.

      Parameters

      • wallet: Wallet

        The wallet to mint the NFT from.

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

        The input arguments for the action.

      Returns Promise<string>

      A message containing the NFT mint details.

name: string = "mint_nft"

The name of the action