# Converting RDDL to PLMNT

## Pre-requirements

* A wallet application (e.g.[Green Wallet](https://blockstream.com/green/)) for transferring the RDDL tokens on the Liquid Network
* RDDL tokens to send
* LBTC tokens to pay for the transaction fees (on the Testnet: <https://liquidtestnet.com/faucet>)
* An authorized recipient (machine) on the planetmint network.

## Step-by-step guide

1. Query the RDDL 2 PLMNT service of the Testnet or the Maintnet by calling `https://testnet-r2p.rddl.io/receiveaddress/` or `https://r2p.rddl.io/receiveaddress/` with your **planemtint address** appended, e.g. for address *`plmnt1atfrnm80xyg86s85xp0av2ukap8n4ap7pevptm`*

   this looks as follows <https://testnet-r2p.rddl.io/receiveaddress/plmnt1atfrnm80xyg86s85xp0av2ukap8n4ap7pevptm>\
   or <https://r2p.rddl.io/receiveaddress/plmnt1atfrnm80xyg86s85xp0av2ukap8n4ap7pevptm>.\
   This call will return a JSON object with the following data:\
   `{ "liquid-address": "tlq1qq2e96fx7t0gvtq9lhk3vg7qwf7s08479ap3wqyelp2c4ds9y7wesk97fd0sla2s7qck4ezns3gy6s8h4qw3e2tqkyfnkvxs4u", "planetmint-beneficiary": "plmnt1atfrnm80xyg86s85xp0av2ukap8n4ap7pevptm" }`
2. Use the wallet of your choice (e.g.[Green Wallet](https://blockstream.com/green/) ) to transfer RDDL tokens on the Liquid network to the liquid-address mentioned above
3. The Liquid address will be supervised for 12 hours, and the funds being received on that address by the next transaction will be converted to PLMNT tokens on planetmint and, after that, transferred to the before-mentioned planetmint address/beneficiary (e.g. plmnt1atfrnm80xyg86s85xp0av2ukap8n4ap7pevptm).

More elaborate documentation about the service and a sequence diagram can be found in its [GitHub repository](https://github.com/rddl-network/rddl-2-plmnt-service).

In essence, the service acts as a bridge between the Liquid blockchain and PlanetMint blockchain, facilitating the minting of PLMNT tokens based on certain conditions met in the Liquid blockchain.


---

# 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://docs.rddl.io/rddl-network/workflows-and-governance/converting-rddl-to-plmnt.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.
