Lesson 17
Begin coding with XRPL and React.js
Building a basic interface for the XRPL with React.js
How developers interact with the XRPL
If you’re going to use the XRPL, there are two important things most developers have to do:
- Send a transaction (to change something on the ledger)
- Send a request (to look up something on the ledger)
For example, you may send a payment to your friend using a “Payment” transaction, then check how much XRP is in your account after using an “account_info” request.
This tutorial will show you how to set up a React app, making it easy to send transactions and then look up what’s happening on the ledger. It will utilize two key libraries: `nice-xrpl`, a React component library to make it easy to assemble simple interfaces, and `xrpl.js`, a client library that facilitates sending transactions and requests.
What you can expect from this course
Each of the following lessons in this course will show you how to use a basic application in a code sandbox built with React.js components. If you just want to see the final result, you can skip all the explanations and jump into the code sandbox in each lesson!
In the first lesson, you’ll start by learning how to:
- Create an account on the XRPL.
- Send a payment from your account to another account.
- And check your account balance afterward.
In the second lesson, you’ll learn how to:
- Configure your account to receive tokens beyond XRP.
- Send and receive tokens with other accounts.
- Display account balances for all tokens.
And in the third lesson, you’ll expand upon that by learning how to:
- Mint/create Non-Fungible Tokens (NFTs).
- Get a list of existing NFTs owned by an account.
- burn/delete an NFT you own.
After you finish these lessons, you should have a solid foundation for how to use the XRPL and quickly build your own React app to interact with the ledger.