Ragon
  • 🚀Introduction
  • 🐲Getting Started
    • How to use Mdapp
      • Use Case 1. NFT P2P Trading
    • How to create Mdapp
  • Document
    • Content Policy
Powered by GitBook
On this page
  1. Getting Started

How to create Mdapp

PreviousUse Case 1. NFT P2P TradingNextContent Policy

Last updated 9 months ago

you can create documents that interact with smart contracts in Ragon.

On the write page, the left side features an input editor, while the right side displays a preview of the document.

The title and tags are required fields. You can add up to five tags, which are used to categorize the document.

The contract field allows you to input a verified contract to link a smart contract to the document.

If you enter a verified smart contract address and it doesn't link in the editor, please check if the network matches.

Ragon retrieves verified contract information from sourcify.eth. Therefore, to link a smart contract to a document, you can only register contracts that have been verified by sourcify.eth

sourcify.eth provides functionality to verify smart contracts. We would like to take this opportunity to thank sourcify.eth for providing this service as an open-source project.

Once you enter the verified contract address, you can create an ABI button in the editor as shown below.

In the editor, you can click the ABI button to select a smart contract function. The smart contract functions come from the ABI data of the linked smart contract.

During the ABI registration process, you first select a function and, if there are parameters, you can set default values for them.

After the registration process is complete, you can see the generated ABI button in the preview screen.

Once the document is finally registered, users can interact with the registered smart contract through the ABI button.

To verify a smart contract, please use the following .

🐲
link
sourcify.ethsourcifyeth
Logo
Ragon's write page
When you click the ABI in the editor, you can select functions from the ABI Register window
Generated ABI button in the preview