Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines initiatives connecting blockchain technology with ISO 20022. Project descriptions and integration examples reflect the sources and design assumptions available when the original article was published.
Overview
ISO 20022 is an international standard developed by the International Organization for Standardization (ISO) for electronic financial messaging. It provides a common language for exchanging transaction information consistently across financial institutions and payment networks.
The standard defines messages for financial activities such as the following.
- Payments.
- Securities transactions and settlement.
- Trade finance.
- Foreign exchange.
- Card transactions.
Harmonizing previously disparate message formats and semantics aims to improve interoperability.
Structure and design
ISO 20022 is a framework for modeling financial information and defining standardized messages, rather than simply a single message format. Its principal elements include the following.
| Element | Description |
|---|---|
| Metamodel | A conceptual model defining common structures for financial business messages, enabling consistent modeling across business domains. |
| UML profile | Extensions and constraints for expressing message models using the Unified Modeling Language (UML). |
| Modeling rules | Guidelines for modeling domains such as payments, securities, and trade finance. |
| Message specifications (XML / ASN.1) | Rules for deriving concrete message definitions, including XML schemas and ASN.1 representations, from the models. |
| Registration and governance | Processes for reviewing, registering, and maintaining message definitions through the ISO 20022 registration framework. |
Separating the model from its transformation rules supports flexibility and extensibility.
Message formats
ISO 20022 supports structured, semantically defined financial information.
Traditional MT messages
International payments and interbank settlement have historically used SWIFT MT (Message Type) messages. The MT family has been used since the 1970s; ISO 15022 specifically concerns the securities-message framework rather than being the basis of every MT payment message.
MT messages use tagged text fields with defined formatting and length constraints.
- Example:
:20:1234567890
:23B:CRED
:32A:230309JPY1000000
:50K:/123456789
Taro Yamada
Tokyo Japan
:59:/987654321
Hanako Suzuki
Osaka JapanThe example illustrates constraints on expressing detailed, structured information such as payment purposes and addresses. Reliance on unstructured text can make automated processing and reconciliation harder.
The format is relatively compact, but less expressive than newer structured message definitions.
MX messages and ISO 20022
SWIFT MX messages typically use XML representations of ISO 20022 message definitions. Explicitly defined elements support machine-readable semantics.
- Example (pacs.008, financial institution-to-financial institution customer credit transfer):
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08">
<FIToFICstmrCdtTrf>
<GrpHdr>
<MsgId>ABC123456789</MsgId>
<CreDtTm>2025-03-09T12:34:56Z</CreDtTm>
</GrpHdr>
<CdtTrfTxInf>
<PmtId>
<InstrId>INSTR-001</InstrId>
<EndToEndId>E2E-001</EndToEndId>
</PmtId>
<Amt>
<InstdAmt Ccy="JPY">1000000</InstdAmt>
</Amt>
<Cdtr>
<Nm>Hanako Suzuki</Nm>
<PstlAdr>
<Ctry>JP</Ctry>
<AdrLine>Osaka Japan</AdrLine>
</PstlAdr>
</Cdtr>
</CdtTrfTxInf>
</FIToFICstmrCdtTrf>
</Document>XML tags make the intended meaning of fields such as payer, payee, amount, and currency explicit. The structured model supports versioned extensions and additional elements, subject to schema and usage-guide requirements.
Message identifiers encode the business area, message functionality, variant, and version. Examples include the following.
- pacs.008.001.08 FI-to-FI customer credit transfer (broadly corresponding to MT103).
- pacs.009.001.08 Financial institution credit transfer (broadly corresponding to MT202).
- camt.053.001.08 Bank-to-customer account statement (broadly corresponding to MT940).
- pain.001.001.09 Customer-to-bank credit transfer initiation.
The naming convention identifies the business domain and message definition.
Comparing MT and MX
| Aspect | Traditional MT | MX (ISO 20022) |
|---|---|---|
| Format | Tagged text with field constraints | XML-based structured data |
| Data structure | Numbered or tagged fields | Hierarchical elements and attributes |
| Expressiveness | Relatively constrained field lengths | Richer structured information, subject to applicable profiles |
| Machine readability | More reliance on parsing field conventions and free text | Explicit element semantics |
| Extensibility | Constrained by legacy formats | Versioned schemas and additional structured elements |
| Identification | MT followed by a number | Business area, message functionality, variant, and version |
Stellar
Overview
Stellar's ecosystem has explored support for information corresponding to the ISO 20022 financial messaging standard. The objective is to combine blockchain-based settlement with the structured information requirements of existing financial systems. The cited BPV initiative uses Stellar ecosystem specifications to support exchange of richer payment information.
Architecture
The described integration combines technical specifications known as Stellar Ecosystem Proposals (SEPs). The BPV initiative particularly draws on the following SEPs.
- Standardizing payment information (SEP-31) SEP-31 defines a cross-border payment protocol through which participating institutions exchange information and coordinate transfers. Institutions can collect the required information through the protocol and apply their compliance rules.
- Standardizing identity information (SEP-9 and SEP-12) These specifications address the data exchanged for know-your-customer and know-your-business procedures. SEP-9 defines standardized fields, including names and addresses, while SEP-12 specifies an API for exchanging customer information.
Together, these specifications can support exchanging information mapped to ISO 20022 payment fields while using Stellar as a settlement network.
Integration details
In this model, financial institutions or fintech businesses called anchors coordinate through standardized SEP interfaces. Value moves on Stellar, while detailed payment information corresponding to ISO 20022 is exchanged between the anchors through APIs.
The following illustrates a cross-border payment workflow.
-
Collect information (SEP-31
/info) The sender initiates a transfer through the sending anchor's application. The application obtains required fields and supported assets from the receiving anchor's/infoendpoint and collects information mapped to the relevant ISO 20022pacs.008fields. -
Customer verification (SEP-12) The sending anchor submits the required customer information to the receiving anchor's SEP-12 endpoint, including updates when necessary.
-
Create the transaction and settle (SEP-31 and Stellar) The sending anchor creates a transaction through SEP-31
POST /transactionsand obtains the designated deposit account andmemo/memo_typefrom the receiving anchor. It then transfers the supported settlement asset, such as a stablecoin, on Stellar, including the designated memo. -
Status notifications and queries Depending on deposit detection and verification progress, the receiving anchor notifies the sending anchor through its callback or the sending anchor queries SEP-31
GET /transactionsendpoints. -
Retrieve and reconcile transaction information The anchors correlate the on-chain payment and the SEP-31 transaction record using the transaction identifier and designated memo. This enables authorized access to the previously collected information mapped to ISO 20022.
-
Disburse local currency The receiving anchor reconciles the received assets with the API record, performs the required compliance checks, and disburses local currency to the recipient's designated account.
Sequence diagram
sequenceDiagram
participant User as Sender
participant SendingAnchor as Sending anchor<br>(Bank in country A)
participant ReceivingAnchor as Receiving anchor<br>(Bank in country B)
participant Stellar as Stellar Network
participant Recipient as Recipient
User->>+SendingAnchor: 1. Initiate payment (SEP-31 /info)<br>Provide required information
SendingAnchor->>+ReceivingAnchor: 2. Submit KYC data (SEP-12)
ReceivingAnchor-->>-SendingAnchor: KYC acknowledgment and requirements
SendingAnchor->>+ReceivingAnchor: 3a. Create transaction (SEP-31 POST /transactions)
ReceivingAnchor-->>-SendingAnchor: 3b. Deposit account and memo/memo_type
SendingAnchor->>+Stellar: 3c. Transfer designated asset with memo
Stellar-->>-ReceivingAnchor: Deposit observed
ReceivingAnchor-->>SendingAnchor: 4. Status callback<br>Or sending anchor queries status
ReceivingAnchor->>+Recipient: 6. Disburse local currency after reconciliation
Use cases
Potential applications of combining Stellar with ISO 20022 messaging include the following.
- Cross-border payments Blockchain settlement may reduce the time required for the on-chain part of an international transfer; end-to-end timing also depends on conversion, compliance, and payout. This can benefit small remittances and corridors otherwise requiring multiple intermediaries.
- Asset tokenization Applications tokenizing real estate, equities, or artwork can map relevant asset and ownership information to financial message definitions where appropriate. Standardized off-chain messaging can help integrate tokenized assets with existing financial systems.
- Modernizing financial infrastructure ISO 20022 migration creates opportunities to combine structured payment messaging with new settlement infrastructure and appropriate regulatory controls.
Cardano
Overview
Cardano's development organization Input Output Global (IOG) has participated in international standardization activities relevant to blockchain interoperability in finance. ISO 20022 is a financial messaging standard; applications and gateways built on Cardano can be designed to process information corresponding to its message definitions. The approach discussed here focuses on foundations for application-level integration rather than claiming that the Cardano consensus protocol itself implements ISO 20022.
Architecture
The described approach operates at two levels.
- Participation in standardization IOG has participated in financial-domain standardization discussions concerning interoperability between distributed ledgers and existing financial standards. Such participation provides a way to contribute technical perspectives to future standards work.
- Transaction metadata Cardano transactions can carry metadata, with available space constrained by the configured overall transaction size; approximately 16 KB is an illustrative transaction-size scale, not a guaranteed separate metadata allowance. Developers can attach data or references mapped to relevant ISO 20022 fields, while storing sensitive audit and compliance information in appropriately protected off-chain systems.
An analogy is a transport network capable of carrying a parcel together with a standardized label: the blockchain transports value, and applications interpret the associated metadata.
Integration details
Cardano provides general-purpose tooling with which developers can build integrations rather than a single mandatory ISO 20022 service. Transaction metadata is an important building block for this approach.
Transactions can carry structured auxiliary data in addition to value-transfer information. Applications can design metadata structures mapped to ISO 20022 message elements. Keep sensitive compliance information off-chain and associate the on-chain transaction with a suitable reference, such as a DID or commitment.
The following is an illustrative application-level payment flow on Cardano.
-
Generate metadata The sender initiates a payment through a wallet or dApp. The application creates structured data mapped to relevant fields of an ISO 20022 message, such as
pacs.008. -
Integrate identity information (Atala PRISM) Where appropriate, the application integrates a decentralized identity solution such as the historically referenced Atala PRISM. Manage KYC/AML information as protected off-chain credentials, and associate the transaction with suitable DID or commitment references.
-
Construct the transaction The wallet constructs a transaction carrying the payment, non-sensitive metadata or references mapped to ISO 20022, and applicable identity references.
-
Record the transaction on-chain The user signs the transaction and submits it to Cardano. The ledger records the payment and associated references. Keep detailed identity information off-chain.
-
Verify and process information The recipient's application or institution monitors the network. When it detects the payment, it reads the accompanying metadata.
-
Compliance and accounting The receiving institution resolves the relevant references, validates the message mapping, and applies its compliance requirements. If the necessary checks pass, it credits the recipient and updates its internal records.
Sequence diagram
This model handles settlement and references on-chain while keeping detailed compliance data off-chain.
sequenceDiagram
participant User as Sender
participant dApp as dApp or wallet
participant Cardano as Cardano blockchain
participant ReceivingApp as Receiving application or institution
participant Recipient as Recipient
User->>+dApp: 1. Initiate payment
Note over dApp: 2. Generate metadata mapped to<br>ISO 20022 (JSON)
dApp->>+User: 3. Request transaction confirmation<br>(payment and metadata)
User->>+dApp: Sign transaction
dApp->>+Cardano: 4. Submit transaction
Cardano-->>-dApp: Transaction included
ReceivingApp->>+Cardano: 5. Monitor and detect transaction
Cardano-->>-ReceivingApp: Return transaction data<br>(payment and metadata)
Note over ReceivingApp: 6. Interpret metadata and<br>perform compliance checks
ReceivingApp->>+Recipient: Credit recipient account
Use cases
Potential applications of combining Cardano with ISO 20022 include the following.
- Connecting DeFi with traditional finance Applications on Cardano can use standardized financial message mappings to support institutional integration with decentralized finance. For example, protected off-chain KYC/AML information linked by appropriate references can support regulated stablecoin payment and digital-asset workflows.
- Supply-chain finance Applications can associate supply-chain events and payment transactions with structured invoice data or references, supporting reconciliation and transparency.
- Real-world asset (RWA) tokenization Applications representing real estate or securities can map relevant ownership and asset information to suitable financial message definitions. This can facilitate cross-system processing while compliance and legal ownership require separate controls.
IOTA
Overview
The IOTA Foundation has participated as a contributing member in the Object Management Group (OMG), a standards organization, with work relevant to interoperability between distributed ledgers and financial messaging. The historical initiative described here concerns OMG's Finance Domain Task Force and distributed-ledger standardization in financial services. It explored potential links between the then-described Tangle architecture for data and value exchange and financial message standards, including ISO 20022.
Architecture
The described work concerns standardization and possible integrations rather than a native ISO 20022 consensus implementation.
- Contributing to standards development The IOTA Foundation has contributed to discussions about integrating distributed ledgers with existing financial standards. The historical design aimed to make such standards usable with IOTA's then-described low-cost data-exchange architecture.
- Data streams (IOTA Streams) IOTA Streams is a historical framework for sharing authenticated and encrypted data streams. Such a data-exchange mechanism can carry financial messages between authorized parties independently of the settlement transaction.
- Digital identity integration Self-sovereign identity mechanisms can help identify parties to a transaction. Digital credentials can represent people, organizations, and devices, subject to their issuance and verification trust models.
Integration details
The historical IOTA design discussed here combines data exchange and value transfer through associated mechanisms. The proposed example uses IOTA Streams as a privacy-oriented data communication layer.
Whereas the Cardano example attaches references to transaction metadata, the IOTA example uses a separate message channel. Exchange sensitive payment messages through an authenticated encrypted channel and associate them with separate settlement transactions.
The following illustrates a possible workflow using the historical IOTA Streams architecture, not a claim of a currently deployed ISO 20022 integration.
-
Establish an encrypted channel The sender and recipient establish an authorized encrypted data channel using the described Streams mechanism.
-
Publish the financial message The sender generates structured financial data mapped to ISO 20022 fields and publishes it to the channel. The historical architecture represents this as a data message rather than a transfer of value.
-
Receive and review the message The recipient retrieves and decrypts the message, verifies its authenticity, and evaluates the requested transaction.
-
Execute settlement Following authorization, the sender transfers the agreed asset through the settlement network. The transaction can include a reference identifying the associated data message, such as a message ID or hash. This allows the settlement record to be correlated with the committed message.
-
Complete reconciliation The recipient observes settlement. It checks the reference against the previously received message before completing its processing.
Sequence diagram
This separates sensitive information exchange from value transfer while enabling the two to be correlated.
sequenceDiagram
participant Sender as Sender or device
participant Streams as IOTA Streams Channel
participant Tangle as IOTA Tangle
participant Receiver as Recipient or device
Sender->>+Streams: 1. Establish encrypted channel
Receiver->>+Streams:
Sender->>+Streams: 2. Publish message mapped to ISO 20022
Note right of Sender: Data message without a value transfer
Receiver->>+Streams: 3. Subscribe to and receive message
Note left of Receiver: Review message and authorize transaction
Sender->>+Tangle: 4. Transfer settlement asset
Note over Sender, Receiver: Transfer includes a reference<br>to the Streams message
Receiver->>+Tangle: 5. Observe settlement
Note left of Receiver: Reconcile reference and message
Use cases
Potential applications of the historical IOTA architecture and standardized financial messaging extend beyond traditional financial workflows.
- Internet of Things economy Machine-to-machine payment is a representative use case. For example, an electric vehicle could measure charging usage and initiate payment with the relevant structured payment information. Industrial equipment could also initiate authorized purchasing and payment workflows.
- Smart cities Connected infrastructure and devices could exchange data and coordinate automated service payments; fees and network capabilities depend on the actual deployment.
- Supply chains and trade finance Sensor observations such as location or temperature could trigger payment-message generation through an application, subject to authenticated data and authorization.
Ripple
Overview
Ripple has described its cross-border payment services under the historical RippleNet branding as using messaging aligned with ISO 20022. Ripple announced that it became the first DLT-focused company to join the ISO 20022 Registration Management Group (RMG). The cited initiative focuses on integrating standardized payment messaging into commercial financial services rather than asserting that XRP itself implements a financial message standard.
Architecture
The historical RippleNet service illustrates this integration.
-
Standardized messaging layer Participating financial institutions connect their systems through APIs. The described RippleNet messaging layer uses a JSON payment object, the Standard RippleNet Payment Object (SRPO), with fields aligned to the relevant payment-message concepts. This allows participating institutions to exchange structured sender, recipient, payment-purpose, and compliance information.
-
Separate messaging and settlement ISO 20022 defines financial messages, not a settlement asset. Ripple's payment architecture coordinates the information layer with the mechanisms that transfer value.
-
On-Demand Liquidity (ODL) and XRP The historically described On-Demand Liquidity service supports settlement using a digital asset as an intermediary. XRP can serve as a bridge asset in supported payment corridors. For example, a USD-to-JPY payment can involve converting USD into XRP, transferring XRP over XRP Ledger, and converting it to JPY at the destination. The on-chain transfer can complete quickly, while the full payment process also depends on liquidity, conversion, compliance, and local payout. This model can reduce the need for some forms of prefunding in foreign correspondent accounts. Ripple's payment services can also use other settlement arrangements, including fiat-based payments.
Integration details
The architectural distinction is between standardized payment information and the value-transfer mechanisms coordinated by the service.
The cited ODL architecture is part of the historical evolution of Ripple's payment products. Ripple Payments is the broader payment offering, not simply another name for every XRP-based settlement flow.
The following illustrates a payment corridor using XRP as a bridge asset.
-
Payment instruction The sending institution submits structured payment data through the service API, mapped to relevant ISO 20022 concepts such as those in
pacs.008. This includes the sender, recipient, and required compliance information. -
Determine the settlement route The service selects an available settlement route under its operating rules. An XRP-based route may proceed as follows.
-
Convert source fiat to XRP A source-side liquidity provider converts the agreed amount of source currency, such as USD, into XRP.
-
Transfer XRP over XRP Ledger XRP is transferred to the destination-side liquidity provider's designated address. The ledger transfer is designed for relatively fast settlement.
-
Convert XRP to destination fiat The destination liquidity provider converts XRP into the local currency, such as JPY.
-
Disburse funds The destination institution receives the funds and credits the final recipient under the applicable payout arrangement.
-
Notify participants of completion The messaging layer communicates the resulting payment status using the applicable structured API format.
This model can reduce prefunding requirements and improve payment speed in supported corridors, but end-to-end costs and timing depend on the service and corridor.
Sequence diagram
sequenceDiagram
participant SendingFI as Sending institution<br>(Country A)
participant RippleNet as RippleNet<br>(Messaging layer)
participant SourceLP as Source liquidity provider<br>(Exchange A)
participant XRPL as XRP Ledger<br>(Settlement layer)
participant DestLP as Destination liquidity provider<br>(Exchange B)
participant ReceivingFI as Receiving institution<br>(Country B)
SendingFI->>+RippleNet: 1. Submit payment instruction
RippleNet->>+SourceLP: 2. Coordinate fiat A to XRP conversion
SourceLP->>+XRPL: 3. Transfer XRP
XRPL-->>-DestLP: XRP received
RippleNet->>+DestLP: 4. Coordinate XRP to fiat B conversion
DestLP->>+ReceivingFI: 5. Deliver fiat B
RippleNet-->>-SendingFI: 6. Report payment completion
Use cases
The described payment model offers several potential benefits.
- Faster and lower-cost cross-border payments Supported payment routes may reduce settlement delays and improve cost predictability compared with traditional multi-intermediary workflows. Potential applications include remittances and business-to-business payments.
- More efficient liquidity management Reducing some prefunding requirements may allow institutions to use capital elsewhere. The economic benefit depends on actual liquidity arrangements and operating costs.
- Improved access to underserved corridors Alternative settlement rails may support some currency corridors where conventional payment infrastructure is limited. This may contribute to financial inclusion.
Algorand
Overview
Algorand has been discussed as infrastructure for financial applications that use ISO 20022 information, emphasizing throughput and commit finality as well as its historical environmental claims. The approach described here concerns application-level integrations rather than a native ISO 20022 messaging implementation. Tokenization and central bank digital currency projects are examples of the financial use cases promoted by its ecosystem.
Architecture
The illustrative integration uses the following blockchain primitives.
- Transaction note Algorand transactions support an optional note field of up to 1 KB. Applications can store compact data mapped to relevant ISO 20022 fields. Given the size limit, use non-sensitive summaries or references to protected off-chain records when necessary.
- Algorand Standard Assets (ASAs) ASAs provide native support for representing assets, such as stablecoins or tokenized interests, on the ledger. Applications can associate ASA transfers with corresponding financial-message fields and off-chain records.
- Smart contracts Applications can implement transaction policies and authorization checks using smart contracts. For example, a contract may restrict operations to participants satisfying a configured eligibility policy.
Integration details
The illustrative Algorand payment workflow associates transaction information with the on-chain transfer, much like the Cardano example.
-
Generate the note When the sender initiates a transfer through a wallet or dApp, the application prepares transaction information mapped to ISO 20022 fields such as those in
pacs.008for the note field. -
Select the asset Select the asset to transfer, such as the native ALGO currency or a stablecoin issued as an ASA.
-
Construct and submit the transaction The application constructs a transaction containing the transfer details, the metadata mapped to ISO 20022 fields in its note, and the fee. The user signs it and submits it to Algorand.
-
Record the transaction and reach finality In the timing example cited in the original article, a transaction is included in a block in approximately 3.3 seconds and reaches finality upon confirmation. The transfer data and associated reference (a summary, hash, or URL in the note) are thereby committed together to the ledger. Detailed compliance information remains off-chain.
-
Process the transaction at the receiving institution The receiving institution monitors Algorand for relevant transactions. Its system reads the transaction note, interprets the fields using the ISO 20022 mapping, and incorporates the information into its compliance and accounting processes.
Sequence diagram
sequenceDiagram
participant User as Sender
participant dApp as dApp or wallet
participant Algorand as Algorand blockchain
participant ReceivingApp as Receiving application or institution
participant Recipient as Recipient
User->>+dApp: 1. Initiate payment
Note over dApp: 2. Generate data mapped to ISO 20022<br>for the note field
dApp->>+User: 3. Request transaction confirmation<br>(transfer and note)
User->>+dApp: Sign transaction
dApp->>+Algorand: 4. Submit transaction
Algorand-->>-dApp: Confirmation (illustrative finality: approximately 3.3 seconds)
ReceivingApp->>+Algorand: 5. Monitor and detect new transactions
Algorand-->>-ReceivingApp: Return transaction data<br>(transfer and note)
Note over ReceivingApp: 6. Parse note and<br>perform compliance checks
ReceivingApp->>+Recipient: Credit recipient account
Use cases
Algorand's technical characteristics make it a candidate for applications that emphasize reliability and environmental considerations.
- Central bank digital currencies (CBDCs) Algorand has been associated with CBDC initiatives, including a historical project in the Marshall Islands. National payment infrastructure may require interoperability with ISO 20022 data; rapid finality and security are relevant infrastructure characteristics.
- Green finance and sustainable finance Its reported carbon-negative initiatives have motivated proposals for financial products associated with ESG investing, such as green bonds and carbon-credit trading.
- Regulated asset tokenization Financial institutions can use tokenization infrastructure to represent real-world assets (RWAs), such as real estate, private equity, and securities, and offer them to global investors subject to applicable compliance requirements.
XDC Network
Overview
XDC Network is a hybrid blockchain designed for enterprise applications, with an emphasis on international trade and trade finance. Its ISO 20022-related approach emphasizes the role of a settlement layer that executes value transfers in response to financial messages mapped to the standard, rather than making the blockchain itself a messaging system. Services such as those described by Impel aim to bridge existing financial messaging infrastructure, including SWIFT, and XDC Network.
Architecture
In this architecture, ISO 20022 messages serve as instructions for settlement. A bridge converts financial institutions' messages into executable transactions on XDC Network.
- Separation of messaging and settlement layers Financial institutions transmit ISO 20022 messages through their existing systems or SWIFT.
- Role of the bridge (Impel) A platform such as the one described by Impel receives the message. It parses the message to identify the sender, recipient, asset, and amount.
- Settlement execution The bridge constructs and executes a transaction on XDC Network based on the parsed instruction. This may involve XDC, a stablecoin issued on the network, or a tokenized trade asset.
- Result notification
After settlement, the integration generates an appropriate status message, such as
pacs.002, and communicates it to the relevant financial institutions.
Integration details
This architecture connects existing financial infrastructure with blockchain settlement through APIs.
-
Generate and transmit the message The originating financial institution generates an ISO 20022
pacs.008payment instruction and sends it through an API to a platform such as Impel. -
Parse the message and prepare settlement The platform receives and validates the message. It then identifies the transaction parameters required on XDC Network, including the source and destination addresses, asset type, and amount.
-
Execute an atomic swap or value transfer Based on those parameters, the integration submits the corresponding transaction to XDC Network. The original article describes single-asset transfers (XDC or tokenized assets) as the primary case, with composite transactions such as atomic swaps as a potential extension. A reference to the original ISO 20022 message, such as a hash, can be included in the transaction data.
-
Confirm settlement and finality The cited network description reports approximately two-second blocks; actual settlement finality must be determined under the applicable XDC consensus and confirmation rules, rather than equated with one block interval.
-
Generate and send the completion notification Upon confirming settlement on XDC Network, the integration generates a status message mapped to
pacs.002in XML or JSON form, as appropriate for the receiving system. The originating institution can update its internal ledger and reconcile the settlement result.
Sequence diagram
sequenceDiagram
participant SendingFI as Originating financial institution
participant Impel as Bridge<br>(Impel Platform)
participant XDC as XDC Network<br>(Settlement layer)
participant ReceivingFI as Beneficiary financial institution
SendingFI->>+Impel: 1. Send ISO 20022 (pacs.008) message
Note over Impel: 2. Parse message and<br>determine transaction parameters
Impel->>+XDC: 3. Execute token transfer<br>(include message reference)
XDC-->>-Impel: 4. Confirm settlement under consensus rules
Note over Impel: Verify completion status
Impel->>+SendingFI: 5. Return ISO 20022 (pacs.002) status report
Impel->>+ReceivingFI: (Optional) Notify receipt
Use cases
The characteristics of XDC Network are relevant to business-to-business financial transactions.
- Trade finance innovation Trade documents such as bills of lading and invoices can be represented as NFTs, enabling programmable coordination of ownership transfers and payments. Such workflows may shorten settlement cycles and improve cash flow, although legal and operational steps may remain off-chain.
- Cross-border settlement Using XDC Network as an alternative settlement rail can reduce reliance on traditional correspondent banking arrangements for eligible transactions. This approach is particularly relevant to business-to-business payments.
- Supply-chain finance A shared ledger can connect the physical movement of goods with associated financial flows, supporting supply-chain finance. For example, a system could trigger a payment when verified delivery data indicates that goods have arrived at a specified location.
Chainlink
Overview
Chainlink provides decentralized oracle infrastructure connecting off-chain data and systems with on-chain smart contracts, rather than functioning as a general-purpose settlement blockchain. Its ISO 20022-related work focuses on interoperability between SWIFT messaging and multiple blockchains, translating and routing instructions through integration components rather than replacing the underlying settlement systems. The cited proofs of concept with SWIFT explore how financial institutions could access tokenized assets without replacing all of their existing infrastructure.
Architecture
Chainlink-based integration can help SWIFT-connected systems communicate with blockchain applications.
- Receive the message A financial institution submits a message through SWIFT instructing an operation involving blockchain assets.
- Translate and route the message (CCIP) The integration receives the message and prepares a request for Chainlink CCIP. It maps the message into instructions understood by the target blockchain application, such as a smart contract on Ethereum.
- Execute on-chain The translated instructions reach the target blockchain, where the relevant smart contract performs an authorized operation such as a token transfer or swap.
- Monitor and report execution results The integration monitors execution and determines when the applicable finality requirements have been satisfied.
- Translate and communicate the result The integration maps execution results (success, failure, and transaction identifiers) to an appropriate ISO 20022 status message and communicates it to the institution through the financial messaging layer.
Integration details
The significance of this architecture is that it could provide access to public and private blockchains through existing financial connectivity, with additional integration and authorization components.
-
Send a payment instruction For example, financial institution A submits a message mapped to ISO 20022 instructing the transfer of 1 million USDC on Ethereum to financial institution B.
-
Receive and route the message through CCIP The message reaches an integration endpoint connected to SWIFT and Chainlink CCIP. The integration determines the source, destination chain, and requested token-transfer action, then constructs the appropriate CCIP request; the on-chain CCIP Router does not itself parse raw SWIFT messages.
-
Execute the on-chain action Using the relevant decentralized oracle network (DON) and authorized application contracts, the integration coordinates execution of the requested operation on Ethereum.
-
Monitor execution and confirm finality The integration observes the transaction until it satisfies the applicable Ethereum finality and operational confirmation requirements.
-
Report completion Once confirmed, the integration generates an ISO 20022-aligned status report containing the result and a transaction reference, such as
0x..., and returns it to financial institution A.
Sequence diagram
sequenceDiagram
participant FI as Financial institution
participant SWIFT as SWIFT network
participant CCIP as Chainlink CCIP
participant DON as Chainlink DON
participant Blockchain as Target blockchain
FI->>+SWIFT: 1. Submit ISO 20022 payment instruction
SWIFT->>+CCIP: 2. Forward message to integration endpoint
Note over CCIP: Map financial message<br>to on-chain instructions
CCIP->>+DON: 3. Coordinate transaction execution
DON->>+Blockchain: 4. Execute authorized smart contract call
Blockchain-->>-DON: Execution result
Note over DON: 5. Monitor and confirm finality
DON->>+CCIP: 6. Report execution result
CCIP->>+SWIFT: 7. Return ISO 20022-aligned status report through integration
SWIFT-->>-FI: 8. Notify financial institution
Use cases
Interoperability between Chainlink-based infrastructure and SWIFT could connect traditional finance (TradFi) with blockchain-based financial applications.
- Global settlement of tokenized assets Financial institutions could use a common connectivity layer to coordinate transactions involving securities tokens, real-estate tokens, and private-equity assets on different networks.
- Access from TradFi to DeFi Subject to regulatory, operational, and authorization requirements, institutions could connect their existing systems to applications such as Aave, Compound, and MakerDAO.
- Digital transformation of financial institutions A shared integration layer could reduce the cost and complexity of connecting to each blockchain separately, although institutions still need appropriate controls and system integration.
Proposed Implementation
The preceding sections discussed initiatives relating ISO 20022 to blockchain applications. This section presents an illustrative implementation using a Solidity smart contract on an EVM-compatible blockchain.
pacs.008 and pacs.002
pacs.008
pacs.008 is the FI-to-FI customer credit transfer message used by a financial institution to instruct another institution to process a customer payment.
It broadly corresponds to the purpose of the legacy SWIFT MT103 message, carrying customer credit transfer information between financial institutions.
https://www.smbctb.co.jp/service/pdf/iso20022_ja.pdf
Characteristics
- Sent from an originating institution to a receiving institution.
- Contains the information required to instruct a credit transfer.
- Expresses details such as the debtor, creditor, amount, currency, and purpose in structured XML.
Main components
| Section | Contents |
|---|---|
<GrpHdr> |
Identification and metadata for the overall message, including MsgId and creation time. |
<CdtTrfTxInf> |
Details of a credit transfer transaction; a message may contain multiple transactions. |
<PmtId> |
Payment identifiers, including InstrId (instruction identifier) and EndToEndId (end-to-end identifier). |
<Amt> |
Amount and currency information, illustrated here by <InstdAmt Ccy="JPY">1000000</InstdAmt>; the exact element path depends on the message definition. |
<Dbtr> / <Cdtr> |
Debtor and creditor information. |
<RmtInf> |
Remittance information, such as the payment purpose or invoice reference. |
pacs.002
pacs.002 reports the status of a received payment instruction such as pacs.008.
It provides structured acceptance, processing, or rejection information; comparisons with legacy MT199 and MT900 are conceptual rather than exact message-type equivalents.
Characteristics
- Returned by a receiving institution or processing system to the sending institution.
- Communicates statuses such as acceptance, settlement completion, or rejection, depending on the applicable status code.
- Can report statuses at message and transaction levels.
Main components
| Section | Contents |
|---|---|
<GrpHdr> |
Identification and metadata for the status report, including MsgId and creation time. |
<OrgnlGrpInfAndSts> |
References the original message, including the MsgId of a pacs.008 instruction. |
<TxInfAndSts> |
Transaction-level status details, including OrgnlInstrId, OrgnlEndToEndId, TxSts, and StsRsnInf (status reason information). |
<TxSts> |
Status code, such as ACTC (accepted technical validation), RJCT (rejected), or ACSP (accepted settlement in process). |
Relationship Between pacs.008 and pacs.002
| Aspect | pacs.008 |
pacs.002 |
|---|---|---|
| Message type | Credit transfer instruction | Payment status report |
| Typical direction | Originating institution to receiving institution | Receiving institution to originating institution |
| Main purpose | Instruct a customer credit transfer | Report acceptance, rejection, or processing status |
| ISO 20022 classification | Payments clearing and settlement (credit transfer) | Payments clearing and settlement (status report) |
| Blockchain integration | Input to registerPayment() |
Generated using settlement observations, including PaymentSettled |
On-Chain Component
The on-chain component is a smart contract written in Solidity.
The following minimal demonstration maps selected fields of an ISO 20022 pacs.008 message to Solidity. It is not production-ready: registration and settlement are unrestricted, allowances alone do not authenticate payment instructions, and the implementation lacks the authorization, reentrancy, token-handling, and privacy controls required for real payments.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IERC20 {
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
contract ISO20022Settlement {
struct Payment {
string msgId; // ISO20022: GrpHdr.MsgId
string instrId; // PmtId.InstrId
string endToEndId; // PmtId.EndToEndId
address debtor; // Sender
address creditor; // Recipient
address asset; // ERC20 address
uint256 amount; // InstdAmt
bytes32 messageHash; // Hash of the ISO 20022 XML
uint256 timestamp;
bool settled;
}
mapping(string => Payment) public payments;
event PaymentRegistered(string msgId, address debtor, address creditor, uint256 amount, address asset);
event PaymentSettled(string msgId, bool success);
// Register pacs.008 payment data
function registerPayment(
string memory msgId,
string memory instrId,
string memory endToEndId,
address debtor,
address creditor,
address asset,
uint256 amount,
bytes32 messageHash
) external {
require(payments[msgId].timestamp == 0, "Duplicate MsgId");
payments[msgId] = Payment({
msgId: msgId,
instrId: instrId,
endToEndId: endToEndId,
debtor: debtor,
creditor: creditor,
asset: asset,
amount: amount,
messageHash: messageHash,
timestamp: block.timestamp,
settled: false
});
emit PaymentRegistered(msgId, debtor, creditor, amount, asset);
}
// Execute settlement for subsequent pacs.002 reporting
function settlePayment(string calldata msgId) external {
Payment storage p = payments[msgId];
require(!p.settled, "Already settled");
require(p.amount > 0, "Invalid payment");
IERC20 token = IERC20(p.asset);
bool success = token.transferFrom(p.debtor, p.creditor, p.amount);
require(success, "Transfer failed");
p.settled = true;
emit PaymentSettled(msgId, true);
}
}This Solidity contract demonstrates registering payment instructions mapped from pacs.008 and transferring ERC20 tokens through settlePayment.
An external off-chain system, such as an ISO 20022 gateway, calls the contract to register the payment information and execute settlement. The demonstration assumes an ERC20 settlement asset, such as a stablecoin.
Payment
struct Payment {
string instrId; // Instruction ID
string endToEndId; // End-to-end ID
address debtor; // Sender
address creditor; // Recipient
address asset; // ERC20 token contract address
uint256 amount; // Transfer amount
bytes32 messageHash; // SHA-256 or another hash of the original XML
uint256 timestamp; // Registration time
bool settled; // Settlement completion flag
}
// ISO20022: GrpHdr.MsgId => Payment
mapping(string => Payment) public payments;The Payment struct is stored using msgId, the ISO 20022 message identifier, as the key.
instrId and endToEndId correspond to the Instruction Identification and End-to-End Identification elements in the pacs.008 FI-to-FI Customer Credit Transfer message.
https://www.smbctb.co.jp/service/pdf/iso20022_ja.pdf
The payment identification (PmtId) component of pacs.008 includes identifiers such as the following.
| Element | Name | Description |
|---|---|---|
InstrId (Instruction Identification) |
Instruction ID | Identifier assigned by the instructing party to identify a payment instruction.Used within the relevant bilateral or internal processing context. |
EndToEndId (End-to-End Identification) |
End-to-end ID | Identifier for tracking a transaction from its originator to its ultimate recipient.It is intended to be carried unchanged through the payment chain. |
TxId (Transaction Identification) |
Transaction ID | Identifier assigned by the first instructing agent to identify the transaction in the interbank chain. Its presence depends on the message definition and usage rules. |
<PmtId>
<InstrId>INSTR-001</InstrId> <!-- Instruction ID -->
<EndToEndId>E2E-001</EndToEndId> <!-- End-to-end ID -->
<TxId>TX-001</TxId> <!-- Transaction ID (subject to applicable rules) -->
</PmtId>The Payment struct stores selected identifiers from this information.
| Solidity field | ISO 20022 element | Description |
|---|---|---|
instrId |
<InstrId> |
Instruction identifier used by the institution or gateway to identify an individual payment instruction. |
endToEndId |
<EndToEndId> |
End-to-end identifier assigned by the initiating party, carried through the payment chain and referenced in the pacs.002 status report. |
msgId |
<GrpHdr><MsgId> |
Identifier for the complete pacs.008 message, which may contain multiple transactions. |
These identifiers can be viewed hierarchically as follows.
GrpHdr.MsgId → Identifier for the entire message (file level)
└─ CdtTrfTxInf.PmtId.InstrId → Identifier for each payment instruction
└─ CdtTrfTxInf.PmtId.EndToEndId → End-to-end identifier for tracking the paymentIn practice, their scopes differ as follows.
| Identifier | Assigning party | Scope | Solidity field |
|---|---|---|---|
| MsgId | Sending financial institution | Entire pacs.008 message | msgId |
| InstrId | Instructing party | Individual instruction within its applicable context | instrId |
| EndToEndId | Initiating party, such as a business or customer | Carried through the payment chain | endToEndId |
InstrIdidentifies a payment instruction within the relevant financial institution's processing context.EndToEndIdidentifies a transaction from the originator's perspective, for example through an invoice or order reference.
Separating these identifiers allows financial institutions to manage multiple instructions associated with the same customer transaction while enabling the customer to trace the payment using an end-to-end reference.
An on-chain integration can use the instruction identifier within a properly scoped payment key and the end-to-end identifier for reconciliation and pacs.002 reporting. This demonstration instead keys the mapping directly by msgId, so it assumes one payment per unique message ID.
PaymentRegistered
event PaymentRegistered(
string msgId,
address debtor,
address creditor,
uint256 amount,
address asset
);This event records the registration of a new payment instruction derived from pacs.008.
Off-chain systems, such as gateways and financial institutions, monitor the event to detect the registered instruction and initiate their acceptance workflow using msgId.
| Parameter | Description |
|---|---|
msgId |
Identifier of the pacs.008 message, used as the payment key in this demonstration. |
debtor |
Sender's address, from which tokens are transferred. |
creditor |
Recipient's address, to which tokens are transferred. |
amount |
Transfer amount in the ERC20 token's smallest units. |
asset |
Contract address of the settlement token, such as USDC or JPYC. |
PaymentSettled
event PaymentSettled(string msgId, bool success);The event is intended to communicate settlement results for the payment instructed by pacs.008.
It provides an input to generating the ISO 20022 pacs.002 payment status report.
| Parameter | Description |
|---|---|
msgId |
Identifier of the corresponding payment message. |
success |
Boolean result: true indicates success and false would indicate failure. In the sample implementation, failed transfers revert, so no failure event is emitted. |
The gateway monitors successful settlement events and failed transaction results to generate the appropriate pacs.002 report. ACTC means accepted technical validation, not completed settlement; use the applicable settlement-completion code when reporting final settlement, or RJCT for a definitive rejection.
registerPayment
function registerPayment(
string memory msgId,
string memory instrId,
string memory endToEndId,
address debtor,
address creditor,
address asset,
uint256 amount,
bytes32 messageHash
) external {
require(payments[msgId].timestamp == 0, "Duplicate MsgId");
payments[msgId] = Payment({
msgId: msgId,
instrId: instrId,
endToEndId: endToEndId,
debtor: debtor,
creditor: creditor,
asset: asset,
amount: amount,
messageHash: messageHash,
timestamp: block.timestamp,
settled: false
});
emit PaymentRegistered(msgId, debtor, creditor, amount, asset);
}| Parameter | Meaning |
|---|---|
msgId |
Corresponds to <GrpHdr><MsgId>; identifies the entire message and serves as the payments key in this example. |
instrId |
Corresponds to <PmtId><InstrId>, the payment instruction identifier. |
endToEndId |
Corresponds to <PmtId><EndToEndId>, used by the initiating party to trace the transaction. |
debtor |
Wallet address paying the ERC20 tokens. |
creditor |
Wallet address receiving the tokens. |
asset |
Contract address of the settlement token, such as USDC or JPYC. |
amount |
Transfer amount expressed as an integer in the token's smallest units. |
messageHash |
Hash, such as SHA-256, of the original off-chain pacs.008 XML, used to check integrity against a trusted commitment. |
- Check for an existing record keyed by
msgId. If thatmsgIdhas already been registered, revert to prevent duplicate registration. - Create a
Paymentstruct and recordblock.timestampas its registration time. - Store it in
payments[msgId]. - Emit the
PaymentRegisteredevent. The event includes the principal payment fields (msgId, sender, recipient, amount, and asset), allowing the off-chain monitoring system to identify a registered payment instruction.
settlePayment
function settlePayment(string calldata msgId) external {
Payment storage p = payments[msgId];
require(!p.settled, "Already settled");
require(p.amount > 0, "Invalid payment");
IERC20 token = IERC20(p.asset);
bool success = token.transferFrom(p.debtor, p.creditor, p.amount);
require(success, "Transfer failed");
p.settled = true;
emit PaymentSettled(msgId, true);
}| Parameter | Meaning |
|---|---|
msgId |
Identifier used to locate a payment registered through registerPayment(); the key of payments. |
- Retrieve the payment from
payments[msgId]and check that it is valid and unsettled.!p.settledReject if the payment has already been settled.p.amount > 0Reject if the amount is zero or the payment is unregistered.
- Select the token contract using
IERC20(p.asset). CalltransferFrom(p.debtor, p.creditor, p.amount)to transfer tokens from the debtor to the creditor. The debtor must first grant an allowance usingapprove(contract, amount). An allowance does not authenticate the particular instruction. - If the transfer succeeds, set
p.settled = true. - Emit
PaymentSettled. The off-chain system detects this event and generates apacs.002payment status report. The simplified example usesACTC(Accepted Technical Validation) andRJCT(Rejected). A production gateway must distinguish technical acceptance, settlement completion, pending execution, and definitive rejection; a reverted settlement transaction emits noPaymentSettledevent.
Off-Chain Component
An off-chain gateway server connects the blockchain to existing financial systems. The gateway parses and validates incoming ISO 20022 XML messages and calls the smart contract to perform authorized settlement. It also monitors blockchain results and maps them back to appropriate ISO 20022 response messages.
Server Architecture and Functions
The gateway application consists of multiple functional modules. Its main components are as follows.
- API server
Receives pacs.008 payment instruction XML from financial systems.
Use HTTPS, preferably with mutual TLS, and accept communications only from authenticated sources.
Pass incoming messages to an internal processing queue for validation.
- Validation module
Validate incoming XML against the applicable ISO 20022 XSD and usage rules.
Verify signatures and sender certificates as required by the integration's authentication policy to establish authenticity and message integrity.
If validation fails, do not call the blockchain; return an appropriate rejection report, such as pacs.002 with RJCT, where applicable.
- Mapping module
Parse the validated pacs.008 message and convert selected information into smart contract parameters.
Extract fields such as MsgId, InstrId, EndToEndId, InstdAmt, Ccy, Dbtr, and Cdtr. Resolve the currency to an authorized ERC20 token contract and convert the amount to integer units using that token's decimals.
Compute a hash of the XML and use it as messageHash during on-chain registration.
- Transaction module
Call the smart contract using the mapped data.
Register payment information using registerPayment() and execute settlePayment() when the applicable authorization and settlement conditions are met.
Sign transactions using appropriately controlled wallet keys and submit them to a blockchain RPC endpoint.
After submission, store the transaction hash and, once available, the block number in the database.
- Event monitoring module
Monitor events emitted by the smart contract, including PaymentRegistered and PaymentSettled.
Determine the settlement status using the event, transaction receipt, and applicable finality policy, then update off-chain state.
- Response generation module
Generate pacs.002 payment status report XML based on the processing result.
Map the result to the appropriate status code. The demonstration uses ACTC for technical acceptance and RJCT for rejection; completed settlement requires a suitable settlement-completion status under the applicable usage rules. Reference the original MsgId, InstrId, and EndToEndId consistently.
Include status reason information (StsRsnInf) where appropriate.
Sign the generated XML as required by the messaging profile and send it back to the financial system.
- Logging and audit module
Record received messages, hashes, smart contract calls, transaction results, events, and generated pacs.002 reports, subject to confidentiality and retention controls.
This provides an auditable processing history.
Processing Workflow
-
Receive pacs.008 An existing system, such as a bank or ERP, submits
pacs.008payment instruction XML to the gateway. The server receives the message and starts its processing workflow. -
Validate the message Validate the XML schema, verify signatures as required, and authenticate the sender. For syntax or authentication errors, generate an appropriate rejection response where applicable, such as
pacs.002withRJCT. -
Check for duplicates Look up existing records using a properly scoped message identifier based on
MsgIdto detect duplicate submissions. If a matching record already exists, verify that the request is identical and return the existing result instead of registering it again. -
Transform the data Convert the message into parameters accepted by the smart contract. Convert amounts to integer units, resolve currencies to approved token addresses, and hash the XML.
-
Register on-chain Call
registerPayment()to register the payment information. After successful registration, record the transaction hash and block number. -
Prepare settlement Check that the debtor has granted the required allowance to the contract, through
approveor a supportedpermitworkflow. If the required authorization is missing, obtain it through an authorized process; report rejection if the payment is definitively refused. -
Execute settlement Call
settlePayment(msgId)to perform the transfer. The smart contract executes the ERC20 token'stransferFrom. -
Verify the result Monitor events and transaction receipts and apply the configured finality policy to determine the outcome. Update the internal record to
SETTLEDfor confirmed success orREJECTEDfor a definitive rejection, while distinguishing pending and retryable outcomes. -
Generate
pacs.002Generate the status report XML according to the payment result. The simplified mapping usesACTCfor acceptance andRJCTfor rejection, with reason codes where needed; select the appropriate settlement-completion status when reporting a completed payment. -
Respond and retain records Return the generated
pacs.002to the sender. Store the incoming XML, hash, on-chain records, event details, and response XML in the appropriate database and storage systems, with access and retention policies that support audit requirements.
End-to-End Processing Flow
sequenceDiagram
participant Bank as Bank or ERP system
participant Gateway as Off-chain gateway<br>(API, validation, mapping, integration)
participant Avalanche as Blockchain<br>(ISO20022Settlement contract)
participant Contract as Smart contract logic
participant DB as Gateway database and audit logs
%% Receive pacs.008
Bank->>+Gateway: Submit pacs.008 XML (payment instruction)
Gateway->>Gateway: Validate XML, signature, and sender
Gateway->>Gateway: Check duplicates (MsgId)
Gateway->>Gateway: Parse XML and map data<br>Integer amount, token address, SHA-256 hash
%% On-chain registration
Gateway->>+Avalanche: registerPayment(msgId, instrId, endToEndId, debtor, creditor, asset, amount, messageHash)
Avalanche->>+Contract: Register a new Payment struct
Contract-->>Avalanche: emit PaymentRegistered(msgId, debtor, creditor, amount, asset)
Avalanche-->>-Gateway: Notify registration event
Gateway->>DB: Store TxHash, BlockNumber, and registration result
%% Check authorization and execute settlement
Gateway->>Gateway: Check debtor allowance or permit
Gateway->>+Avalanche: settlePayment(msgId)
Avalanche->>+Contract: ERC20.transferFrom(debtor → creditor)
Contract-->>Avalanche: emit PaymentSettled(msgId, success=true)
Avalanche-->>-Gateway: Notify settlement event
%% Generate and return result
Gateway->>DB: Update settlement status (SETTLED)
Gateway->>Gateway: Generate pacs.002 XML (appropriate status code)
Gateway->>Bank: Return pacs.002 status report
Gateway->>DB: Store XML, events, and audit information
Note over Bank,Avalanche: Complete pacs.008 instruction, registration, settlement, and pacs.002 reporting
-
Send the
pacs.008payment instructionA bank or corporate ERP system submits an ISO 20022
pacs.008message to the off-chain gateway. It contains information such as the debtor, creditor, instructed amount (InstdAmt), currency code, and transaction identifiers (MsgId,InstrId, andEndToEndId). The message communicates an instruction to transfer a specified amount to the designated recipient. -
Validate and transform the message
The gateway first validates the incoming XML. It checks XSD conformance, applicable signature and certificate requirements, and duplicate identifiers to determine whether the payment instruction can be accepted. Once validated, map the XML information to blockchain-compatible parameters.
- Convert the amount to integer units using the ERC20 token's
decimals. - Resolve the currency code to a designated token contract address.
- Generate
messageHashby hashing the complete XML with SHA-256.
The selected ISO 20022 fields are now represented as Solidity function arguments.
- Convert the amount to integer units using the ERC20 token's
-
Register the payment with the smart contract (
registerPayment)The gateway calls
registerPayment()on the Avalanche smart contract with the mapped data. The payment information is stored in aPaymentstruct, and successful registration emitsPaymentRegistered.At this stage, the selected payment information and its commitment have been recorded on-chain. The full
pacs.008XML remains off-chain; its hash enables integrity verification against the recorded commitment. -
Execute settlement (
settlePayment)After registration, the gateway verifies whether the debtor has granted a sufficient token allowance to the contract and whether the instruction is authorized. If the settlement conditions are satisfied, it calls
settlePayment(msgId).The smart contract performs the following operations.
IERC20.transferFrom(debtor, creditor, amount)transfers the debtor's tokens to the creditor.- If the transfer succeeds, the contract emits
PaymentSettled.
This event indicates successful execution of the on-chain settlement operation.
-
Confirm settlement completion
The gateway monitors blockchain event logs, for example through WebSocket or RPC subscriptions. It checks
PaymentSettled, the transaction receipt, and the applicable finality conditions before reporting completed settlement.If execution fails, the gateway obtains the available failure details from the transaction result and uses them in subsequent processing.
-
Generate the
pacs.002status reportThe gateway maps the processing outcome back to the ISO 20022 message format. This is the
pacs.002FI-to-FI Payment Status Report.- Technical acceptance:
TxSts=ACTC(Accepted Technical Validation); completed settlement uses the applicable completion status. - Definitive rejection:
TxSts=RJCT(Rejected).
The
pacs.002report references the originalMsgId,InstrId, andEndToEndIdin the corresponding original-message and transaction-identification fields. This allows the receiving system to reconcile the report with the payment instruction. - Technical acceptance:
-
Return and record the result
The generated
pacs.002XML is signed where required and returned to the bank or ERP system. The gateway also stores the following information in its internal database or appropriate protected storage.- Original
pacs.008XML - Hash (
messageHash) - Blockchain transaction hash
- Settlement event information
- Returned
pacs.002report
This preserves the transaction history for audit purposes, subject to appropriate access and retention policies. The payment instruction, registration, settlement, and status reporting cycle is complete.
- Original
Summary of the Overall Workflow
| Phase | Main operation | Corresponding ISO 20022 message or blockchain operation |
|---|---|---|
| 1 | Bank sends payment instruction | pacs.008 |
| 2 | Gateway validates and transforms the message | Internal processing |
| 3 | Register on-chain | Record mapped pacs.008 data through registerPayment |
| 4 | Execute transfer | Token transfer within the contract |
| 5 | Detect and confirm settlement | PaymentSettled and transaction confirmation |
| 6 | Generate status report | pacs.002 with the appropriate status code |
| 7 | Return and retain result | Transmit pacs.002 and retain audit records |
This architecture illustrates how existing ISO 20022 messaging can be retained while integrating blockchain settlement and returning results to financial systems. The security of a real deployment depends on authorization, message validation, reconciliation, and other operational controls.
pacs.008 to JSON Schema (Payment Instruction)
pacs.008 is a payment instruction message through which financial institutions request the processing of a customer credit transfer.
The following JSON schema is a simplified application-specific representation of selected XML fields for blockchain integration, not an official ISO 20022 schema.
The smart contract arguments are derived from this mapping.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ISO20022_pacs008",
"type": "object",
"properties": {
"Document": {
"type": "object",
"properties": {
"FIToFICstmrCdtTrf": {
"type": "object",
"properties": {
"GrpHdr": {
"type": "object",
"properties": {
"MsgId": { "type": "string", "description": "Unique message identifier" },
"CreDtTm": { "type": "string", "format": "date-time" }
},
"required": ["MsgId", "CreDtTm"]
},
"CdtTrfTxInf": {
"type": "object",
"properties": {
"PmtId": {
"type": "object",
"properties": {
"InstrId": { "type": "string" },
"EndToEndId": { "type": "string" }
},
"required": ["InstrId", "EndToEndId"]
},
"Amt": {
"type": "object",
"properties": {
"InstdAmt": {
"type": "object",
"properties": {
"_": { "type": "string", "description": "Amount" },
"Ccy": { "type": "string", "description": "Currency code" }
},
"required": ["_", "Ccy"]
}
},
"required": ["InstdAmt"]
},
"Dbtr": {
"type": "object",
"properties": {
"Nm": { "type": "string" },
"Acct": { "type": "string" },
"WalletAddr": { "type": "string", "description": "Blockchain wallet address" }
}
},
"Cdtr": {
"type": "object",
"properties": {
"Nm": { "type": "string" },
"Acct": { "type": "string" },
"WalletAddr": { "type": "string" }
}
},
"RmtInf": {
"type": "object",
"properties": {
"Ustrd": { "type": "string", "description": "Unstructured remittance information, such as payment purpose" }
}
}
},
"required": ["PmtId", "Amt", "Dbtr", "Cdtr"]
}
},
"required": ["GrpHdr", "CdtTrfTxInf"]
}
},
"required": ["FIToFICstmrCdtTrf"]
}
},
"required": ["Document"]
}Schema Structure
-
DocumentThe root element wrapping the ISO 20022 message. The XML
<Document>root containsFIToFICstmrCdtTrf, the FI-to-FI customer credit transfer. -
FIToFICstmrCdtTrfStands for Financial Institution to Financial Institution Customer Credit Transfer. This is the main block containing customer credit transfer information.
-
GrpHdr(Group Header)Identification and metadata for the entire message.
MsgIdThe message identifier, represented asmsgIdin the example contract.CreDtTmCreation date and time. ISO 8601 format, for example2025-10-22T12:34:56Z.
-
CdtTrfTxInf(Credit Transfer Transaction Information)The details of the credit transfer transaction, a central component of
pacs.008. A message may include multiple transactions; this simplified mapping processes one transaction per message.PmtId(Payment Identification) This example includes two of the main identifiers associated with the payment.InstrIdInstruction identifier used by the instructing institution (instrIdin the Solidity struct).EndToEndIdEnd-to-end identifier assigned by the initiating party (endToEndIdin the struct). Referenced when generating a correspondingpacs.002report.Amt(Amount) Defines the payment amount and currency in this illustrative mapping.InstdAmt._The monetary amount. Convert it to integer token units for the on-chainamountfield.InstdAmt.CcyCurrency code, for example JPY or USD. Resolve the currency to an approved ERC20 token contract address.Dbtr(Debtor) Debtor information. Includes a name, account number, and wallet address in this custom mapping;WalletAddrmaps to the on-chaindebtor. Wallet addresses are application-specific extensions rather than standard ISO 20022 elements.Cdtr(Creditor) Creditor information. The customWalletAddrmaps to the on-chaincreditor.RmtInf(Remittance Information) Additional unstructured information, such as the payment purpose or invoice reference. It is not recorded directly on-chain, but may be used for protected audit records and reporting.
Using this schema, the off-chain gateway converts XML to the application-specific JSON representation and passes the mapped parameters to the Solidity contract's registerPayment() function.
| Contract argument | Corresponding JSON field |
|---|---|
| msgId | GrpHdr.MsgId |
| instrId | PmtId.InstrId |
| endToEndId | PmtId.EndToEndId |
| debtor | Dbtr.WalletAddr |
| creditor | Cdtr.WalletAddr |
| asset | InstdAmt.Ccy → designated ERC20 address |
| amount | InstdAmt._ (converted to integer token units) |
| messageHash | SHA-256 hash of the complete XML |
pacs.002 to JSON Schema (Payment Status Report)
pacs.002 reports the processing status of a payment instruction sent using pacs.008.
The off-chain gateway can use the following simplified JSON schema to generate XML reports in response to settlement observations. This is an application-specific mapping, not the official ISO 20022 schema.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ISO20022_pacs002",
"type": "object",
"properties": {
"Document": {
"type": "object",
"properties": {
"FIToFIPmtStsRpt": {
"type": "object",
"properties": {
"GrpHdr": {
"type": "object",
"properties": {
"MsgId": { "type": "string" },
"CreDtTm": { "type": "string", "format": "date-time" }
},
"required": ["MsgId"]
},
"OrgnlGrpInfAndSts": {
"type": "object",
"properties": {
"OrgnlMsgId": { "type": "string" },
"OrgnlMsgNmId": { "type": "string", "enum": ["pacs.008.001.08"] }
},
"required": ["OrgnlMsgId", "OrgnlMsgNmId"]
},
"TxInfAndSts": {
"type": "object",
"properties": {
"OrgnlInstrId": { "type": "string" },
"OrgnlEndToEndId": { "type": "string" },
"TxSts": {
"type": "string",
"enum": ["ACTC", "RJCT"],
"description": "ACTC=accepted technical validation, RJCT=rejected"
},
"StsRsnInf": {
"type": "object",
"properties": {
"Rsn": { "type": "string" },
"AddtlInf": { "type": "string" }
}
}
},
"required": ["OrgnlInstrId", "TxSts"]
}
},
"required": ["GrpHdr", "OrgnlGrpInfAndSts", "TxInfAndSts"]
}
},
"required": ["FIToFIPmtStsRpt"]
}
},
"required": ["Document"]
}Schema Structure
DocumentAs withpacs.008, this is the root element wrapping the ISO 20022 message.FIToFIPmtStsRpt(Financial Institution To Financial Institution Payment Status Report) The main body ofpacs.002. The example contains one report.
GrpHdrIdentifies the status report itself.MsgIdis a newly assigned identifier for thepacs.002report.OrgnlGrpInfAndSts(Original Group Information and Status) References the identification of the originalpacs.008message.OrgnlMsgIdGrpHdr.MsgIdof the original message.OrgnlMsgNmIdThe example fixes this to"pacs.008.001.08"to identify the original message definition; a general implementation uses the actual original message name and version.
TxInfAndSts(Transaction Information and Status) Contains transaction-level status information.OrgnlInstrIdOriginal transaction'sInstrId.OrgnlEndToEndIdOriginal transaction'sEndToEndId.TxStsPayment processing status. The simplified schema allowsACTCfor accepted technical validation andRJCTfor rejection; it must be extended for settlement-completion and other required statuses.StsRsnInfRejection reasons, such as an error code and additional information.
The gateway derives pacs.002 reports from blockchain execution observations and its payment processing state.
- The sample contract emits
PaymentSettled(msgId, success)upon successful settlement; a revert does not emit a failure event. - The off-chain component monitors events and transaction outcomes and generates the corresponding
pacs.002JSON representation. - Technical acceptance →
TxSts=ACTC; completed settlement requires the appropriate completion status. Definitive rejection →TxSts=RJCTand applicableStsRsnInf(for example, insufficient balance or missing authorization).
Mapping Between pacs.008 and pacs.002
pacs.008 field |
pacs.002 field |
Meaning and correspondence |
|---|---|---|
GrpHdr.MsgId |
OrgnlGrpInfAndSts.OrgnlMsgId |
Reference identifying the original message |
PmtId.InstrId |
TxInfAndSts.OrgnlInstrId |
Identifier of the original payment instruction |
PmtId.EndToEndId |
TxInfAndSts.OrgnlEndToEndId |
End-to-end identifier for tracking the payment |
Avalanche contract's PaymentSettled |
TxInfAndSts.TxSts |
Appropriate status derived from execution and confirmation results; ACTC denotes technical acceptance, not settlement completion |
| Failure reason | TxInfAndSts.StsRsnInf |
Details of a rejection, including the cause |
Conclusion
This article examined initiatives to represent and integrate ISO 20022 financial messages in blockchain applications.
For more of my articles, see the following resources.
References
- List of ISO 20022 Compliant Crypto
- Transitioning international remittances to the ISO 20022 format
- Cross-Border Payments (SEP-31) — Anchor Platform Admin Guide
- SEP-12: KYC API — Specification
- bp-ventures/stellar-payment-api (ISO 20022 mapping example)
- ISO 20022: Implementation — SWIFT (CBPR+)
- ISO 20022 Message Definitions — Catalogue
- Cardano Developers — Docs (Transaction metadata overview & retrieval)
- CIP-10: Transaction Metadata Label Registry
- CIP-20: Transaction message/comment metadata
- What is the size limit of transaction’s metadata? — Cardano StackExchange
- Catalogue of messages — ISO 20022
- OMG Financial Sector Domain Task Force (Finance DTF)
- IOTA — What is IOTA? (official introduction)
- IOTA Streams (encrypted data streams / repository)
- IOTA Identity (self-sovereign identity / W3C DID and VC)
- IOTA Identity Docs — Verifiable Credentials
- ISO 20022 — Official overview
- ISO 20022: Shaping the Future of Cross-Border Payments — Ripple (RMG participation and first DLT-focused member)
- Ripple Docs — Ripple Payments / SRPO / ODL API documentation
- On-Demand Liquidity Spans Worldwide — Ripple (ODL rollout)
- About ISO 20022 — ISO20022.org (official overview)
- ISO 20022 Message Definitions — ISO20022.org (message definition catalogue)
- Algorand — OKX: “Algorand’s Surge: ISO 20022 Compliance, Sustainability & Tokenization”
- Algorand — Binance Research: “Algorand is ISO 20022 ready”
- ISO 20022 — ISO20022.org (official overview)
- ISO 20022 Message Definitions — ISO20022.org
- CoinCodex: “ISO 20022 Crypto: List of Compliant Coins & Tokens in 2025”
- 99Bitcoins: “ISO 20022 isn’t a Certification: Algorand is compatible…”
- XDC Payments — ISO 20022 messaging (official)
- XDPoS — XDC consensus and finality (documentation)
- XDC 2.0 — Two-second blocks and three-block finality (network overview)
- Impel — ISO 20022 Financial Messaging / bridge on XDC
- Impel announces ISO 20022 support on XDC (GlobeNewswire)
- Impel's ISO 20022 financial messaging offering (Finextra)
- Announcement concerning the XDC and R3 Corda bridge (SBI Group)
- ISO 20022 Message Definitions (official catalogue, including pacs.008 and pacs.002)
- Swift, UBS Asset Management, and Chainlink successfully complete pilot
- Swift: Successful blockchain experiments unlock tokenisation (using Chainlink / CCIP)
- Swift: Live trials of digital asset transactions to start in 2025
- The Swift and Chainlink Partnership — Chainlink Blog
- Chainlink Docs — CCIP overview / architecture / directory
- Sibos 2025 Recap — Operating tokenized funds with ISO 20022 messages




