• This function creates a ChangeDriver operation using the specified Honeycomb instance and the provided arguments. The operation is used to change the driver of a HoneycombProject.

    Parameters

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the operation.

    Example

    const honeycomb = new Honeycomb(connection);
    const project = new HoneycombProject(...); // Replace with your project constructor.
    honeycomb.use(project);

    // Define the ChangeDriver arguments.
    const args = {
    project: project,
    driver: publicKey1, // Replace with the new driver's public key.
    };

    // Create ChangeDriver operation.
    const { operation } = await createChangeDriverOperation(honeycomb, args);
    operation.send(); // The generated ChangeDriver operation.

Generated using TypeDoc