Lesson 10 of 11 · Power tools · about 5 minutes

Beyond the XRPL

Neighbor networks, bridges between them, and how facts from the outside world reach the ledger.

  • Sidechains
  • Bridges
  • Outside facts
Astro Bear looks through a wormhole toward neighboring ledgers.
1 · Neighbors

Sidechains and other chains

A sidechain is a separate network that connects to the XRP Ledger to add extra features. One example is the XRPL EVM sidechain, which runs apps written for Ethereum.

Xahau is a separate network built from XRPL code that adds Hooks, small programs that react to transactions.

A chain of ledger pages. A new page slides in and links to the one before it, and every bear's copy gets it.Page 1Page 2Page 3NewEach page links to the one beforeEveryone's copy gets the new page
Each new page links to the one before it, and every copy gets it.
2 · Bridges

Moving value between networks

A bridge locks a coin on one network and creates a matching wrapped coin on the other. Going back unlocks the original.

Bridges are a favorite target for hackers. Use only well known ones, and start small.

A coin is locked on the XRP Ledger, crosses a bridge, and a matching wrapped coin appears on the side ledger.XRP LedgerSide ledgerXwwbridgeLock a coin here, a matching one appears there
Lock a coin on one ledger, and a matching one appears on the other.
3 · Other designs

How others do it

Some blockchains use mining, which burns lots of energy, or staking, where people lock up coins to vote. The XRP Ledger uses validators agreeing instead.

Many chains run smart contracts for almost anything. The XRP Ledger builds common tools, like the marketplace and escrow, right in.

A clock ticks every few seconds and each time validators agree, a new validated ledger page is added to the stack.3 to 5 secLedger 101Ledger 102Ledger 103Validators agree, then a new ledger closes
Validators agree, then a new ledger closes every few seconds.
4 · Outside facts

Bringing the world on-chain

A ledger only knows what is written to it. An oracle brings an outside fact in, like a price or the weather.

The daily sky memo is a simple example: once a day, the planet positions are written to the ledger, where anyone can check them later.

A calendar fills up with one sky snapshot each day, and each one adds a line to the ledger.This weekMonTueWedXXA sky snapshot, every day
One sky snapshot a day builds a record you can look back on.

Try it: read today's sky from the ledger

Every day Astro Bear Live Sky writes where the planets are to the real XRP Ledger. Press the button to read the newest one straight from a public ledger server. Read only: no wallet, nothing is sent.

Press the button.

Mini game: Fact or myth?

Eight cards. Fact or myth?

Quick check: 3 questions

Get all 3 right to finish Lesson 10. Try as many times as you like.

Optional: the 4-panel comic for this lesson

Who is who: ☉︎ Sol, the Sun☽︎ Luna, the Moon♄︎ Val the validator, Saturn

1
Can the ledger see the planets?
2
Not by itself. Someone has to write it in.
3
Live Sky writes the sky once a day. I validate it.
4
Now anyone can check the sky on the ledger!

Just for fun. You do not need it to finish. Download the comic