Deploy NFT action.

Implements

Constructors

Properties

Constructors

Properties

argsSchema: ZodObject<
    { baseURI: ZodString; name: ZodString; symbol: ZodString },
    "strip",
    ZodTypeAny,
    { baseURI: string; name: string; symbol: string },
    { baseURI: string; name: string; symbol: string },
> = DeployNftInput

Schema for validating action arguments

description: string = DEPLOY_NFT_PROMPT

A description of what the action does

func: (
    wallet: Wallet,
    args: { baseURI: string; name: string; symbol: string },
) => Promise<string> = deployNft

The function to execute for this action

Type declaration

    • (
          wallet: Wallet,
          args: { baseURI: string; name: string; symbol: string },
      ): Promise<string>
    • Deploys an NFT (ERC-721) token collection onchain from the wallet.

      Parameters

      • wallet: Wallet

        The wallet to deploy the NFT from.

      • args: { baseURI: string; name: string; symbol: string }

        The input arguments for the action.

      Returns Promise<string>

      A message containing the NFT token deployment details.

name: string = "deploy_nft"

The name of the action