• Creates a "Revoke Delegate" operation to remove the delegation authority from the specified holder account.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance.

    • args: CreateRevokeDelegateOperationArgs

      The arguments for creating the "Revoke Delegate" operation.

    Returns Promise<{
        operation: Operation;
    }>

    An object containing the "Revoke Delegate" operation.

    Example

    const honeycomb = new Honeycomb(...); // Initialize Honeycomb instance
    const holderAccount = ...; // HplHolderAccount instance

    // Create a "Revoke Delegate" operation for the holder account
    const operationArgs: CreateRevokeDelegateOperationArgs = {
    holderAccount,
    };
    const { operation } = await createRevokeDelegateOperation(honeycomb, operationArgs);
    operation.send();

Generated using TypeDoc