• This function creates an UpdateUser operation using the specified Honeycomb instance and the provided arguments. The operation is used to update a user's information in the Honeycomb ecosystem.

    The function calculates the public info public key using the provided parameters. It also generates the necessary instructions for the operation, including authority and rent sysvar.

    Parameters

    Returns {
        operation: Operation;
    }

    An object containing the operation.

    Example

    const honeycomb = new Honeycomb(connection);

    // Create UpdateUser operation with specified arguments.
    const operationArgs: CreateUpdateUserOperationArgs = {
    args: {
    name: "User";
    bio: null;
    pfp: null;
    }, // The new name to be set for the user.
    user: userPublicKey, // The public key of the user to be updated.
    };
    const { operation } = createUpdateUserOperation(honeycomb, operationArgs);
    operation.send(); // The generated UpdateUser operation.

Generated using TypeDoc