• This function creates a CreateDelegateAuthority operation using the specified Honeycomb instance and the provided arguments. The operation is used to create a new delegate authority in a HoneycombProject.

    Parameters

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the operation and delegate authority information.

    Example

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

    // Define the CreateDelegateAuthority arguments.
    const args = {
    delegations: []
    };

    // Create CreateDelegateAuthority operation.
    const operationArgs: CreateDelegateAuthorityOperationArgs = {
    args: args,
    project: project,
    delegate: publicKey1,
    };
    const { operation } = await createCreateDelegateAuthorityOperation(honeycomb, operationArgs);
    operation.send(); // The generated CreateDelegateAuthority operation.

Generated using TypeDoc