FastACH 0.1.6.64

There is a newer version of this package available.
See the version list below for details.
dotnet add package FastACH --version 0.1.6.64
NuGet\Install-Package FastACH -Version 0.1.6.64
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FastACH" Version="0.1.6.64" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FastACH --version 0.1.6.64
#r "nuget: FastACH, 0.1.6.64"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FastACH as a Cake Addin
#addin nuget:?package=FastACH&version=0.1.6.64

// Install FastACH as a Cake Tool
#tool nuget:?package=FastACH&version=0.1.6.64

CircleCI

FastACH

.NET library for reading and writing ACH files

Installation NuGet

.NET 7.0

PM> Install-Package FastACH

Add namespace to the program

using FastACH;

Usage

Reading ACH file

var reader = new AchFileReader();

var achFile = await reader.Read("ACH.txt");

var achFileWriter = new AchFileWriter();

achFileWriter.WriteToConsole(achFile); // Output to console

Writing ACH file

var achFile = new AchFile()
{
    OneRecord = new FileHeaderRecord()
    {
        ImmediateDestination = "123456789",
        ImmediateOrigin = "123456789",
        FileCreationDate = DateOnly.FromDateTime(DateTime.Now),
        FileCreationTime = TimeOnly.FromDateTime(DateTime.Now),
        FileIdModifier = 'A',
        ImmediateDestinationName = "PNC Bank",
        ImmediateOriginName = "Microsoft Inc.",
        ReferenceCode = "00000000"
    },
    BatchRecordList =
    {
        new BatchRecord()
        {
            BatchHeader = new BatchHeaderRecord()
            {
                ServiceClassCode = 200,
                CompanyName = "companyName",
                CompanyDiscretionaryData = "companyDiscretionary",
                CompanyId = "companyID",
                CompanyEntryDescription = "EntryDescr",
                CompanyDescriptiveDate = new DateOnly(2011, 02, 03),
                EffectiveEntryDate = new DateOnly(2011, 01, 02),
                OriginatingDFIID = "DFINumber"
            },
            TransactionDetailsList =
            {
                new TransactionRecord
                {
                    EntryDetail = new EntryDetailRecord()
                    {
                        TransactionCode = 22,
                        ReceivingDFIID = 12345678,
                        CheckDigit = '9',
                        DFIAccountNumber = "1313131313",
                        Amount = 22M,
                        ReceiverIdentificationNumber = "ID Number",
                        ReceiverName = "ID Name",
                        DiscretionaryData = "Desc Data",
                        AddendaRecordIndicator = true,
                    },
                    Addenda = new AddendaRecord()
                    {
                        AddendaInformation = "Monthly bill"
                    }
                },
                new TransactionRecord()
                {
                    EntryDetail = new EntryDetailRecord()
                    {
                        TransactionCode = 27,
                        ReceivingDFIID = 12345678,
                        CheckDigit = '9',
                        DFIAccountNumber = "1313131313",
                        Amount = 27M,
                        ReceiverIdentificationNumber = "ID Number",
                        ReceiverName = "ID Name",
                        DiscretionaryData = "Desc Data",
                        AddendaRecordIndicator = false,
                    },
                    Addenda = null
                }
            }
        }
    }
};

var writer = new AchFileWriter();

await writer.WriteToFile(achFile, "ACH.txt");

Perfomance results

I created a benchmark to compare reading performance between FastACH and very popular ChoETL.Nacha library.

BenchmarkDotNet v0.13.12, Windows 11 (10.0.22621.3007/22H2/2022Update/SunValley2) 13th Gen Intel Core i7-1370P, 1 CPU, 20 logical and 14 physical cores .NET SDK 8.0.100 [Host] : .NET 7.0.15 (7.0.1523.57226), X64 RyuJIT AVX2 DefaultJob : .NET 7.0.15 (7.0.1523.57226), X64 RyuJIT AVX2

Method NumberOfEntries Mean Error StdDev
FastACH 1000 0.8138 ms 0.0123 ms 0.0109 ms
ChoETL.Nacha 1000 335.7584 ms 6.6044 ms 13.1896 ms
FastACH 10000 10.0477 ms 0.1996 ms 0.4505 ms
ChoETL.Nacha 10000 3,240.3946 ms 54.2025 ms 50.7010 ms
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.3.88 31 6/28/2024
0.3.3.87 44 6/27/2024
0.3.2.86 30 6/27/2024
0.3.1.85 30 6/27/2024
0.3.0.84 37 6/27/2024
0.2.6.83 155 6/5/2024
0.2.5.82 75 6/5/2024
0.2.5.81 74 6/5/2024
0.2.5.80 74 6/4/2024
0.2.5.79 76 6/4/2024
0.2.5.78 68 6/4/2024
0.2.4.77 74 6/4/2024
0.2.4.76 73 6/4/2024
0.2.3.75 79 6/4/2024
0.2.3.74 80 6/4/2024
0.2.2.73 80 6/4/2024
0.2.1.72 84 6/4/2024
0.2.1.71 68 5/31/2024
0.2.0.70 72 5/31/2024
0.1.11.69 73 5/31/2024
0.1.10.68 244 4/15/2024
0.1.9.67 100 2/1/2024
0.1.8.66 417 2/1/2024
0.1.7.65 82 2/1/2024
0.1.6.64 78 2/1/2024
0.1.5.63 81 2/1/2024
0.1.4.62 81 1/31/2024
0.1.3.61 77 1/31/2024
0.1.2.60 69 1/31/2024
0.1.1.59 71 1/31/2024
0.1.1.58 75 1/31/2024
0.1.0.57 72 1/31/2024
0.0.12.56 83 1/25/2024
0.0.11.55 78 1/24/2024
0.0.10.53 77 1/24/2024
0.0.10.52 73 1/23/2024
0.0.9.51 74 1/23/2024
0.0.8.50 77 1/23/2024
0.0.8.49 77 1/23/2024
0.0.8.48 67 1/23/2024
0.0.7.47 71 1/22/2024
0.0.6.46 82 1/22/2024
0.0.6 83 1/22/2024
0.0.5 91 1/18/2024
0.0.4 77 1/18/2024
0.0.3 80 1/18/2024
0.0.2 87 1/16/2024
0.0.1.1 98 1/8/2024
0.0.1 89 1/8/2024