Type Alias: FormSubmissionAction

@torque-labs/torque-utilsDocs


@torque-labs/torque-utils / FormSubmissionAction

Type Alias: FormSubmissionAction

type FormSubmissionAction: {
  antiSybilFee: number;
  fields: {
     label: string;
     name: string;
     options: {
        label: string;
        value: string;
       }[];
     required: null | boolean;
     type: FormFieldType;
    }[];
};

Form submission action type

Type declaration

Name
Type
Description

antiSybilFee?

number

Require anti-sybil fee for the form submission. If true, the user must pay a transaction fee to complete the requirement. Otherwise, the form submission will be completed and validated with a signature.

fields

{ label: string; name: string; options: { label: string; value: string; }[]; required: null | boolean; type: FormFieldType; }[]

The fields to collect from the user

Defined in

types/eventConfig/requirements.ts:315

Last updated