I tried to search the Swift application header i.e block 2 standard formats for input and output messages on swift official site i.e https://www.swift.com/ but I am unable to get this details.
Can anyone please help me to get an official link where format specification for swift block 2 is present? This is required to write a parsing logic for my code.
Thank you!
There are two types of application headers: Input and Output (from the network perspective). Both are fixed-length and continuous with no field delimiters.
Input Used in outgoing messages, when a message is input to the SWIFT network.
It includes the following fields:
Output Used in incoming messages, when a message is output from the SWIFT network.
It includes the following fields:
You can find more information regarding the MT structure here: https://www.prowidesoftware.com/resources/SWIFT
BTW, I'm one of the authors of the Prowide open source library for SWIFT. You might consider using this library instead of writing your own parser from scratch.