Crypto Wallet and Blockchain Development Tutorials
Tutorials
What's New
Recently added/updated tutorials to help you build on the XRP Ledger.
Add Assets to an AMM in JavaScript
Deposit assets into an existing Automated Market Maker (AMM), vote on its trading fee, and redeem LP tokens using JavaScript.
Use the AMM Auction Slot for Lower Fees
Bid on an Automated Market Maker (AMM) auction slot to trade against the pool at a discounted fee.
Send a Single Account Batch Transaction
Send a Batch transaction from a single account.
All tutorials
83 tutorials across 9 topics. Search by task, or filter by language and topic.
Get Started with SDKs
These tutorials walk you through the basics of building a very simple XRP Ledger-connected application using your favorite programming language.
Get Started Using JavaScript Library
Using the xrpl.js client library.
Get Started Using TypeScript Library
Using xrpl.js with TypeScript's built-in type checking.
Get Started Using Python Library
Using xrpl.py, a pure Python library.
Get Started Using Go Library
Using xrpl-go, a pure Go library.
Get Started Using Java Library
Using xrpl4j, a pure Java library.
Get Started Using PHP Library
Using the XRPL_PHP client library.
Get Started Using HTTP / WebSocket APIs
Access the XRP Ledger directly through the APIs of its core server.
Tokens
Create and manage tokens on the XRP Ledger.
Issue a Multi-Purpose Token (MPT)
Issue new tokens using the v2 fungible token standard.
Issue a Fungible Token
Issue new tokens using the v1 fungible token standard.
Mint and Burn NFTs Using JavaScript
Create new NFTs, retrieve existing tokens, and burn the ones you no longer need.
Issue an MPT for Confidential Transfers
Issue a Multi-Purpose Token (MPT) that supports confidential transfers, register the issuer and auditor encryption keys, and mint confidential tokens.
Transfer NFTs Using Python
Use a Python test harness to create and accept NFT buy and sell offers.
Enact Global Freeze
Freeze all tokens issued by your address.
Freeze a Trust Line
Freeze an individual holder of a token.
Enable No Freeze
Permanently give up your account's ability to freeze tokens it issues.
Mint and Burn NFTs Using Python
Mint and burn NFTs.
Transfer NFTs Using JavaScript
Use a JavaScript test harness to send XRP, trade currencies, and mint and trade NFTs.
Batch Mint NFTs Using JavaScript
Mint multiple NFTs with the press of a button.
Batch Mint NFTs Using Python
Mint multiple NFTs with the press of a button.
Assign an Authorized Minter Using JavaScript
Authorize another account to mint NFTs for you.
Assign an Authorized Minter Using Python
Authorize another account to mint NFTs for you.
Broker an NFT Sale Using Python
Broker a sale between a sell offer and a buy offer.
Broker an NFT Sale Using JavaScript
Broker a sale between a sell offer and a buy offer.
Claw Back Confidential Balances
Claw back a holder's entire confidential Multi-Purpose Token (MPT) balance as the issuer, then verify the result as the holder, the issuer, and the auditor.
Payments
Transfer XRP and issued currencies using various payment types.
Send XRP
Learn how to send test payments right from your browser.
Send a Multi-Purpose Token (MPT)
Send a direct payment of a Multi-Purpose Token (MPT) on the XRP Ledger.
Send a Conditional Escrow
Create an escrow whose release is based on a condition being fulfilled.
Send a Timed Escrow
Send an escrow whose only condition for release is that a specific time has passed.
Send a Trust Line Token
Send a trust line token from one holder to another on the XRP Ledger.
Use Payment Channels
Payment Channels are an advanced feature for sending "asynchronous" XRP payments that can be divided into very small increments and settled later. This tutorial walks through the entire process of using a payment channel, with examples using the JSON-RPC API of a local xrpld server.
Send Confidential MPT Payments
Settle two confidential Multi-Purpose Token (MPT) payments atomically with a Batch transaction, then read the result as a holder and as an auditor.
Look up Escrows
Look up pending escrows by sender or destination address.
Send a Check
Send a Check whose intended recipient can cash it to be paid later.
Cash a Check for an Exact Amount
Cash a Check for any exact amount up to the amount it specifies.
Cash a Check for a Flexible Amount
Cash a Check for as much as possible.
Look Up Checks
Get a list of pending checks sent from or to an account.
Cancel a Check
Cancel a Check without sending money.
Send Fungible Token Escrows
Create and finish escrows that hold fungible tokens (MPTs and trust line tokens) on the XRP Ledger.
Cancel an Expired Escrow
Cancel an expired escrow.
DeFi
Trade, provide liquidity, and lend using native XRP Ledger DeFi features.
Create an Automated Market Maker
Set up an Automated Market Maker (AMM)
Trade in the Decentralized Exchange
Buy or sell fungible tokens for each other or for XRP in the decentralized exchange.
Create a Loan
Create a loan on the XRP Ledger using the Lending Protocol.
Create a Single Asset Vault
Create a single asset vault on the XRP Ledger.
Add Assets to an AMM in JavaScript
Deposit assets into an existing Automated Market Maker (AMM), vote on its trading fee, and redeem LP tokens using JavaScript.
Use the AMM Auction Slot for Lower Fees
Bid on an Automated Market Maker (AMM) auction slot to trade against the pool at a discounted fee.
Manage a Loan
Impair and default a loan on the XRP Ledger.
Create a Loan Broker
Create a loan broker on the XRP Ledger.
Claw Back First-Loss Capital
Claw back tokens that have been deposited into a LoanBroker entry as first-loss capital.
Deposit and Withdraw First-Loss Capital
Deposit and withdraw first-loss capital from a LoanBroker entry on the XRP Ledger.
Pay Off a Loan
Pay off a loan and delete it from the XRP Ledger.
Deposit into a Vault
Deposit assets into a vault and receive shares.
Withdraw from a Vault
Withdraw assets from a single asset vault.
Best Practices
Learn recommended patterns for building reliable, secure applications on the XRP Ledger.
API Usage
Best practices for efficiently and reliably interacting with the XRP Ledger API, including pagination, data handling, and performance optimization.
Send a Single Account Batch Transaction
Send a Batch transaction from a single account.
Send a Multi-Account Batch Transaction
Send a Batch transaction containing transactions from multiple accounts.
Sponsor a Transaction by Co-Signing
Cover another account's transaction fee and reserve requirement by co-signing a single transaction.
Sponsor a Transaction with a Pre-funded Pool
Create a sponsorship pool that lets a sponsee submit sponsored transactions without the sponsor co-signing each one.
Manage a Sponsorship Pool
Create, spend, top up, and delete a pre-funded sponsorship pool on the XRP Ledger.
Transfer a Reserve Sponsorship
Create, reassign, or end the reserve sponsorship on an existing ledger entry.
Offline Account Setup Tutorial
Set up an XRP Ledger account using an air-gapped, offline machine to store its cryptographic keys.
Use Tickets
Use Tickets to send a transaction outside the normal Sequence order.
Disable Master Key Pair
Disable the master key that is mathematically associated with an address.
Calculate Account Reserves
Look up and calculate base and owner reserve requirements for an XRPL account.
Assign a Regular Key Pair
Authorize a regular key pair to sign transactions from your account. This key pair can be changed or removed later.
Remove a Regular Key Pair
Remove a regular key pair already authorized by your account.
Set Up Multi-Signing
Add a signer list to your account to enable multi-signing.
Send a Multi-Signed Transaction
Send a transaction authorized with multiple signatures.
Compliance
Implement compliance controls like destination tags, credentials, and permissioned domains.
Manage Permissioned Domains
Create and manage a permissioned domain to restrict access to financial services that meet compliance requirements.
Require Destination Tags
Require users to specify a destination tag when sending to your address.
Manage Credentials
Issue, accept, and delete a credential on the XRP Ledger.
Verify Credentials
Verify that an account holds a valid credential on the XRP Ledger.
Programmability
Set up cross-chain bridges and submit interoperability transactions.
Advanced Developer Topics
Explore advanced topics like WebSocket monitoring and testing Devnet features.
Sample Apps
Build complete, end-to-end applications like wallets and credential services.
Build a Browser Wallet in JavaScript
Build a graphical browser wallet for the XRPL using Javascript.
Build a Desktop Wallet in JavaScript
Build a graphical desktop wallet for the XRPL using JavaScript.
Build a Desktop Wallet in Python
Build a graphical desktop wallet for the XRPL in Python.
Build a Credential Issuing Service in Javascript
Build a credential issuing microservice with Javascript and Node.js.
Build a Credential Issuing Service in Python
Build a credential issuing microservice in Python.
Keep building
The source behind every tutorial, tooling for AI assistants, and how to add a tutorial of your own.