intermediate 45 min

Pathfinding & Cross-Currency Payments

Route payments across multiple currencies using the XRPL DEX. Learn pathfinding mechanics, prerequisites (trustlines, liquidity), and build cross-currency payment transactions.

Overview

Route payments across multiple currencies using the XRPL DEX. Learn pathfinding mechanics, prerequisites (trustlines, liquidity), and build cross-currency payment transactions.

Resources

Assignments

1. Find a Path

Use the path_find API to discover a route between two currencies. Log the available paths and their costs.

2. Cross-Currency Payment

Execute a payment that sends USD but delivers EUR, using the DEX path. Verify both accounts received the correct currencies.

Prerequisites

Complete these before starting this module:

Assignments

1

Find a Path

Use the path_find API to discover a route between two currencies. Log the available paths and their costs.

2

Cross-Currency Payment

Execute a payment that sends USD but delivers EUR, using the DEX path. Verify both accounts received the correct currencies.