NFT Marketplace
NFT marketplace is a program where you can buy and sell non-fungible tokens for fungible tokens. The program also supports holding the NFT auctions and making/accepting purchase offers on NFTs.
The following are program examples available on GitHub:
- Gear Non-Fungible Token.
- NFT marketplace.
- Marketplace UI available on Github
Anyone can easily create their own NFT marketplace application and run it on Gear-powered Networks.
How to run
⚒️ Build programs
- Build NFT contract as described in
README.md
- Build Marketplace program as described in
README.md
🏗️ Upload programs
You can deploy a program using idea.gear-tech.io. In the network selector, choose Staging Testnet
or Development
(in this case, you should have a local node running).
Non-Fungible Token
- Upload program
nft.opt.wasm
from/target/wasm32-unknown-unknown/release/
- Upload metadata file
meta.txt
- Specify
init payload
and calculate gas!
信息
Init payload:
- name
Str
- NFT collection name - symbol
Str
- NFT collection symbol - base_uri
Str
- NFT collection base URI - royalties
Option<Royalties>
- Optional param to specify accounts to pay royalties
Marketplace
- Upload program
marketplace.opt.wasm
from/target/wasm32-unknown-unknown/release/
- Upload metadata file
meta.txt
- Specify
init payload
and calculate gas!
信息
InitMarket payload:
- admin_id (ActorId) - marketplace admin
- treasury_id (ActorId) - an account that receives a commission from sales on the marketplace
- treasury_fee (U16) - sales commission
🖥️ Run UI
- Install packages
yarn install