beginner 30 min

Reading & Subscribing to Transactions

Learn to retrieve account transaction history and subscribe to real-time transaction streams using WebSocket event listeners on the XRP Ledger.

Overview

Learn to retrieve account transaction history and subscribe to real-time transaction streams using WebSocket event listeners on the XRP Ledger.

Resources

Assignments

1. Fetch Account History

Write a script that retrieves the last 10 transactions for a given account and logs their type and amount.

2. Live Transaction Feed

Subscribe to an account's transaction stream and log each incoming transaction in real-time. Test by sending XRP from another script.

Prerequisites

Complete these before starting this module:

Assignments

1

Fetch Account History

Write a script that retrieves the last 10 transactions for a given account and logs their type and amount.

2

Live Transaction Feed

Subscribe to an account's transaction stream and log each incoming transaction in real-time. Test by sending XRP from another script.