Request faucet funds action.

Implements

Constructors

Properties

Constructors

Properties

argsSchema: ZodObject<
    { assetId: ZodOptional<ZodString> },
    "strip",
    ZodTypeAny,
    { assetId?: string },
    { assetId?: string },
> = RequestFaucetFundsInput

Schema for validating action arguments

description: string = REQUEST_FAUCET_FUNDS_PROMPT

A description of what the action does

func: (wallet: Wallet, args: { assetId?: string }) => Promise<string> = requestFaucetFunds

The function to execute for this action

Type declaration

    • (wallet: Wallet, args: { assetId?: string }): Promise<string>
    • Requests test tokens from the faucet for the default address in the wallet.

      Parameters

      • wallet: Wallet

        The wallet to receive tokens.

      • args: { assetId?: string }

        The input arguments for the action.

      Returns Promise<string>

      A confirmation message with transaction details.

name: string = "request_faucet_funds"

The name of the action