Last updated


You can create your own interface to try out the capabilities and support your specific business needs. These tutorials build a test harness interface to try out features of the XRP Ledger. The harness displays multiple accounts, so that you can transfer tokens from one account to the other and see the results in real time.

Typically, the example functions involve four steps.

  • Connect to the XRP Ledger and instantiate your wallet.
  • Make changes to the XRP Ledger using transactions.
  • Get the state of accounts and tokens on the XRP Ledger using requests.
  • Disconnect from the XRP Ledger.

Each lesson builds the Token Test Harness one section at a time, with complete Python code that incrementally builds a user interface and separate files that contain the business logic. After describing usage, each lesson provides a code walkthrough. You can download the source code, manipulate it in your favorite IDE, and run it to interact with the XRP Ledger.

Once familiar with the library functions, you can build sample applications in Python. We anticipate that the applications you build greatly improve upon these examples. Your feedback and contributions are most welcome.

To get started:

  • Create a new folder on your local disk and install the Python library (xrpl-py) using pip.

    pip3 install xrpl-py

  • Clone or download the Sample modules.

Note: Without the sample modules, you won't be able to try the examples that follow.

Tutorial Modules