Last updated
Edit

JavaScript

You can create your own interface to try out the capabilities and support your specific business needs. These tutorials use a consistent test harness interface to try out features of the XRP Ledger.

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 features complete JavaScript and HTML code samples and a code walkthrough. You can download the source code, manipulate it in a text editor, and run it in your favorite browser.

Much of this is “brute force” code that sacrifices conciseness for readability. Most examples incorporate functions from earlier examples so that any new code is specific to the topic of that tutorial

Once familiar with the library functions, you can build sample applications in JavaScript. 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 JavaScript library using npm.

    npm install xrpl

Download and expand the Payment Modular Tutorial Samples archive.

Tutorial Modules