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
  • The NFT Marketplace includes five basic functions:
  • Seller Process
  • Buyer Process
  • Important Notes
  1. Getting Started
  2. How to use Mdapp

Use Case 1. NFT P2P Trading

PreviousHow to use MdappNextHow to create Mdapp

Last updated 8 months ago

Let's explore how users can trade NFTs peer-to-peer (P2P) on Ragon. For P2P NFT trades, we will use a smart contract that facilitates the exchange of NFTs.

The P2P NFT Marketplace contract is a smart contract that allows users to trade already minted NFTs (ERC-721 standard compatible) without any fees.

This smart contract is a sample created for demonstration purposes in Ragon and can be replaced with any contract that offers the same functionality.

The NFT Marketplace includes five basic functions:

  1. View NFTs for sale

  2. Purchase NFTs

  3. List NFTs for sale

  4. Cancel an NFT listing

  5. Modify the sale price of an NFT

You can check the details of the smart contract below:

Seller Process

  1. Register the application to sell NFTs.

    • At this point, you can connect it to the NFT Marketplace contract. (If not connected, buyers can visit the marketplace application to proceed with the transaction.)

  2. Grant permission to the NFT Marketplace contract to sell your NFT (NFT Contract - approve).

  3. List the NFT for sale on the NFT Marketplace contract (Marketplace Contract - listNFT).

The seller can cancel or change the price of the listed NFT at any time before it is sold. Once sold, the payment is automatically settled and transferred to the seller's registered wallet.

Buyer Process

  1. Find the NFT you want to buy.

  2. Verify that the NFT is listed on the NFT marketplace (Marketplace Contract - getListing).

    • Do not automatically trust the NFT Marketplace contract the seller has linked.

  3. Purchase the NFT through a transaction (Marketplace Contract - buyNFT).

  4. Confirm the ownership of the NFT on the contract (NFT Contract - ownerOf).

Both buyers and sellers can trade without intermediaries, only paying minimal gas fees for transactions through the marketplace contract, without additional fees.

You can explore the NFT trading application through the link below:

Important Notes

Be cautious when using contracts deployed directly by sellers—always verify them carefully before proceeding.

Typically, ensure that the NFT Marketplace contract linked by the seller matches the Ragon-deployed NFT Marketplace contract (). Alternatively, you can safely trade NFTs through the Ragon NFT Marketplace Application ().

🐲
link
link
RAGON - Smart Contract PlatformRAGON
NFT Marketplace
RAGON - Smart Contract PlatformRAGON
Ragon Character NFT Sales #1~3
Logo
Logo