• This function creates an AddRemoveCriteria operation using the specified Honeycomb instance and the provided arguments. The operation is used to add or remove criteria associated with a HoneycombProject. If the criteria already exists, it will be removed when remove is set to true.

    Parameters

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the operation.

    Example

    const honeycomb = new Honeycomb(connection);
    const project = new HoneycombProject(...); // Create the HoneycombProject instance.
    honeycomb.use(project);

    // Create AddRemoveCriteria operation with specified criteria.
    const operationArgs: CreateAddRemoveCriteriaOperationArgs = {
    project: project,
    allowedProgram: publicKey1,
    collection: publicKey2,
    creator: publicKey3,
    remove: false,
    };
    const { operation } = await createAddRemoveCriteriaOperation(honeycomb, operationArgs);
    operation.send(); // The generated AddRemoveCriteria operation.

Generated using TypeDoc