# How it works

### **What are MetaMask Snaps**

MetaMask Snaps are modular extensions that allow developers to expand the functionality of the MetaMask wallet. Snaps are built using MetaMask’s Snaps API, enabling developers to introduce new protocols, blockchains, or features into the MetaMask ecosystem without needing to modify the core MetaMask software. This extensibility empowers users to interact with a wider range of decentralized networks and applications directly from their MetaMask wallet.

{% embed url="<https://metamask.io/snaps/>" %}

### **What can you do with the XRP Ledger Snap**

The XRP Ledger Snap allows users to seamlessly interact with the XRP Ledger (XRPL) through their MetaMask wallet. By installing this Snap, users can manage XRP and other tokens on the XRPL, perform transactions, and engage with XRPL-based decentralized applications (DApps) without leaving the MetaMask interface. The Snap bridges the gap between MetaMask and the XRP Ledger, bringing the speed and efficiency of the XRPL to a widely-used Ethereum wallet.

### **How to use the XRP Ledger Snap**

Once you have [installed](https://snap-docs.xrplevm.org/getting-started) the XRP Ledger Snap, you can use it in two main ways:

1. **Using the Official Snap Page:**
   * The official Snap page at <https://snap.xrplevm.org/> serves as a centralized hub where you can manage your XRP and other tokens, perform transactions, and interact with the XRP Ledger.

{% embed url="<https://snap.xrplevm.org/>" %}

1. **Using Other DApps:**

* The XRP Ledger Snap is also compatible with other decentralized applications (DApps) that are built on or interact with the XRP Ledger.
* When you visit a compatible DApp, your MetaMask wallet (with the XRP Ledger Snap installed) will automatically recognize the application, allowing you to perform transactions and manage your assets seamlessly.
* This feature makes it easy to use your MetaMask wallet across various platforms that support the XRP Ledger, providing a unified and consistent user experience.

### **Features Overview**

* **XRP Management:**\
  Manage your XRP balance directly within MetaMask. View your balance, send and receive XRP, and keep track of your transactions on the XRP Ledger.
* **Token and NFT Support:**\
  In addition to XRP, the Snap supports other tokens and NFTs issued on the XRP Ledger, enabling you to manage a diverse portfolio of assets within MetaMask.
* **Transaction Management:**\
  Easily perform and manage transactions on the XRP Ledger. The Snap provides a user-friendly interface for sending and receiving payments and interacting with smart contracts.
* **DApp Integration:**\
  The XRP Ledger Snap integrates with decentralized applications (DApps) built on the XRP Ledger, allowing you to interact with these applications directly through MetaMask.
* **Security and Privacy:**\
  The Snap leverages MetaMask’s security model while adding support for the XRP Ledger, ensuring that your assets and data remain secure.
* **Seamless Experience:**\
  The XRP Ledger Snap is designed to provide a seamless user experience, bringing the functionality of the XRP Ledger into the familiar MetaMask interface with minimal setup required.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://snap-docs.xrplevm.org/basics/how-it-works.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
