# Netting

<mark style="color:red;">multilateral = network</mark>\ <mark style="color:red;">bilateral = between counterparties</mark>

**Q: What is netting?**\
A: A way of consolidating or reconciling multiple payments between two or more parties to create a single amount due to each participant. It simplifies doing [business](https://www.ibm.com/topics/blockchain-for-business) and reduces risk.

Netting refers to the consolidation of multiple financial obligations or payments into a single net amount. By strategically offsetting positive and negative positions, netting reduces the total number and value of payments involved as well as their associated settlement risks.

**Example:** Party A is due to receive USD 75,000 from Party B. At the same time, Party B is due to receive USD 30,000 from Party A. Instead of Party B paying USD 75,000 to Party A and Party A paying USD 30,000 to Party B in two separate transactions (called gross settlement), the payments can be netted. That way Party A owes nothing, and Party B pays Party A USD 45,000.

**Q: Why blockchain for netting?**\
A: The primary benefit for the banks is reducing the cost of cash logistics.

* Lower costs for all parties
* Reduce manual data entry and file uploads
* Automate and speed processing of matching and netting transactions
* Increase security through encryption and tamper-evident distributed ledger technology
* Provide transparency and enhance trust with permissioned access to transaction data

Problem:

It is not uncommon for banks to find themselves flush with cash in one city and low on cash needed to fill ATM machines in another city. Physically moving cash from one city to another is expensive, requiring armored car transport, possibly air transport, and insurance, among other costs. Another option is to ask the central bank to absorb the excess money in one city and provide cash in the other city, but this is also a costly alternative.

### IDN Liquidity Algorithm

At start of each day, participants send $$$ to a central funding account. This $$$ pool allows XFT to settle faster, larger payments via multilateral netting.

* <mark style="color:purple;">Multilateral netting:</mark> Offsets obligations across the entire network
* <mark style="color:purple;">Bilateral netting:</mark> Offsets payment obligations between two banks

Bilateral netting: If your bank owes another bank $100 million, and that bank owes your bank $80 million, XFT nets these so only $20 million needs to move.

<mark style="color:purple;">LIQUIDITY MECHANISM FLOW OF FUNDS</mark>

1. Bank funds IDN wallet
2. Bank adds optional supplemental
3. Bank A pays Bank B
4. XFT debits A credits B
5. Uses supplemental then primary
6. Queues if limits hit
7. End of day net and settle​

Liquidity saving mechanisms

* Offsetting algorithm
* Time-varying tariff
* Payment splitting

<details>

<summary>Why liquidity saving mechanisms when IDN = instant + zero counterparty risk?</summary>

Bank balance sheet + large-value payments still require prefunding/cash on hand. Accelerate working capital flows for RDFI leg.

</details>

<figure><img src="/files/Ji6ItVitaY4zk5BOeNnP" alt=""><figcaption></figcaption></figure>

***

RESOURCES

[GUIDELINES FOR FOREIGN EXCHANGE SETTLEMENT NETTING](https://www.newyorkfed.org/medialibrary/microsites/fxc/files/guidefx.pdf)

[What is Netting? How Does Netting Work?](https://www.newyorkfed.org/medialibrary/microsites/fmlg/files/Millerspresentationonnetting.pdf)

[Payment Systems, Comptroller's Handbook](https://www.occ.gov/publications-and-resources/publications/comptrollers-handbook/files/payment-sys-funds-transfer-activities/pub-ch-payment-systems.pdf)

[Wholesale Payment Systems, FFIEC’s Handbook](https://ithandbook.ffiec.gov/it-booklets/wholesale-payment-systems/introduction/)

[Automated Clearing House, NCUA Examiner’s Guide](https://publishedguides.ncua.gov/examiner/Content/ExaminersGuide/ElectronicPaymentSystems/EPSTypes/ACH/ACH_Overview.htm)

[About ACH Payments, PayPal](https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/about_ach_payments.htm)

[System and method for intraday netting payment finality with supplemental funding](https://xft.finance/downloads/US8725609B2.pdf)

[FedNow and Faster Payments in US](https://xft.finance/downloads/fednow_bostonfed_20241108.pdf)

[Liquidity saving in real-time gross&#x20;settlement systems](http://xft.sh/boe-rtgs-liquidity)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xft.finance/idn/technical/netting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
