Super Dictionary is a Dapp deployed on Nebulas testnet.
The source code of Super Dictionary smart contract is
smart_dictionary.js. And the contract address after deployed on testnet is
Super Dictionary is a simple smart contract that stores and gets key/value pairs. It has two functions for Dapp user to use:
save(key, value)to create a entry(key/value pair) into Super Dictionary.
get(key)to search the value of a given key. If this entry doesn't exits, then you can create this entry.
Web page of Dapp
After the smart contract of our Dapp is deployed, we need to develop a web page or App for user to interact with it. The webpage of Super Dictionary is
In Super Dictionary, we use NebPay SDK as our payment interface, and Dapp user need to install chrome extension WebExtensionWallet(on PC) or NAS Nano wallet app(on mobile) to complete the transactions initiated by Dapp.
Now we explain how to call smart contract functions
get in Dapp html file.
And to store dictionary entries with function
save, we need to send transactions. Here we use NebPay to send transactions. To learn how to use nebpay in Dapp, please refer to Nebpay documents "Introduction of NebPay SDK"
How to use Super Dictionary
Here is the video that showing how to use Super Dictionary on PC and mobile phone.
Video on Youtube:
Video on bilibili: