General
Fungible tokens are the ones that can be interchanged with one another. For example, P3D Coin is fungible, because every its unit is equivalent to the next one. By means of 3DPass platform you can mint your own fungible currency (token), which will operate on 3DPass blockchain network. In order to move your token some P3D is also required for transaction fee.
How to mint a fungible token with Assets trait
- Open Polkadot js wallet
- Go to Network > Assers
- Create your asset
- Sign and submit two Extrinsics (1 - creates the asset, 2 - set metadata)
- Mint your tokens
- Transfer tokens with the wallet
How to mint a fungible token with Smart Contract
3DPass supports Substrate smart contract trait using ink, a Rust-based embedded domain specific language (eDSL) for writing WebAssembly smart contracts. Learn more about how it compares to Solidity.
Guidelines
- Build and run 3DPass node
- Follow ink docs and set up the environment (Cargo contract cli is required)
- Connect contracts-ui to 3DPass node in local
- Create your own contract or use some examples (ERC-20, RC-721, etc)
- Upload the contract via contracts-ui
- Interact with your contract via its API
Useful links:
- Smart Contracts VS Runtime development
- Visit Substrate forum to
get answeres to related quiestions.