Five Bells Demo
This is a demo of the Interledger protocol. It allows you to very quickly spin up a complete Interledger network and do test transactions.
Please note that this reference code is intended for TESTING USE ONLY. Do not use with real funds.
Running the Demo
Prerequisites
In order to try the Five Bells Demo, you need to make sure you have the following:
Step 1: Clone demo
git clone https://github.com/interledger/five-bells-demo.git
cd five-bells-demo
Step 2: Install dependencies
npm install --only=prod --no-optional
Step 3: Run it!
npm start
Visit http://localhost:5001
to see it in action!
Configuration
DEMO_NUM_LEDGERS
- Number offive-bells-ledger
processes to startDEMO_NUM_CONNECTORS
- Number offive-bells-connector
processes to startDEMO_CONNECTED_CORE
- How connected the core ledgers in the generated graph should be (default: 2)DEMO_CONNECTIONS_PER_NEW_NODE
- How many connections each ledger will be added with (default: 2, must be <=DEMO_CONNECTED_CORE
)
Why "Five Bells"?
Legend (i.e. Wikipedia) has it that before 1770, checks/cheques were cleared by clerks running between banks exchanging checks for cash.
One day, two of the clerks from London banks recognized one another in the Five Bells Tavern on Lombard Street. The clerks started meeting daily at the Five Bells to clear checks, determine the banks' net positions and settle the remaining balances.
In the early 1800s, the group of clerks outgrew their space at the Five Bells and moved across the street to a dedicated building where check clearing would take place until the early 2000s.
Components
This demo uses the following modules: