Protocol Concepts
dApp
Explains the details of the dApp using the protocol
![](https://mintlify.s3.us-west-1.amazonaws.com/trainprotocol/images/dApp.png)
TRAIN Bridging Interface
Overview
The TRAIN Bridge dApp serves as the central interface for seamless cross-chain transactions. It integrates with the Discovery mechanism to fetch available Solvers and participates in the Solver Auction process to determine optimal routes for bridging.
The dApp has three main responsibilities:
- Connecting to the Discovery Registry to fetch available Solvers and Networks
- Connecting to the Auction to transmit the User’s intent and get quotes from Solvers
- Executing an Atomic Swap flow
Observing the Destination Network
The dApp must observe the destination lock created by the Solver and provide the hashlock
to the User to complete the Atomic Swap process. The dApp can observe this transaction through the following methods, listed in order of priority:
- Bootstrap a Light Client (e.g., Helios) for the destination chain and read the lock state from it
- If no Light Client is available, read and verify the lock state from multiple RPC providers