Web 3 Comes to FGC
What is Web3?
Web3 is essentially the gateway that allows for decentralized applications to connect to peer-to-peer networks like FantasyGold Core. It uses a set of libraries called Web3.js that allows applications to interact with on-chain components by connecting to blockchain nodes.
For end-users, Web3 gives them control over their data and provides a secure means to access Web3 decentralized applications without giving up email and password data. In most cases users can interact with a dApp and his or her tokens never have to leave the safety of their own wallet. Remember the phrase “Not your keys, not your coins”.
FGCweb3.js is a Web3.js fork for the FantasyGold Core blockchain. The code is open-source and can be reviewed at https://github.com/fantasygold/FGCweb3
FGCweb3 is a library for dApps to interact with the FantasyGold blockchain. FGCweb3 communicates to a FantasyGold node via a provider and broadcasts transactions with the FGC insight-api.
What will this do for Fantasy Gold Coin (FGC)?
FGCweb3 opens more options for smart contract developers to deploy dApps on the Fantasy Gold blockchain, and gives users of these dApps an easy and secure method to interact with them. With Web3 on FGC also comes FGCLite, a lightweight browser extension which acts as a wallet for sending and receiving FGC coins and tokens.
FGCLite is used to authenticate users on a dApp and get information about a user’s account status. For example, the web app can communicate with FGCLite using FGCWeb3 and obtain information such as account address, and whether that address has enough tokens to complete the action being requested. In addition, dApps can also listen for any changes to the user’s account status and to make callcontract and sendtocontract calls to the blockchain.
FGCLite is available to install now through its GitHub repository, and will be available on Chrome, Brave, and Chromium directly in the coming days. Developers can download and build the extension from the repo https://github.com/FantasyGold/FGCLite to start building their next decentralized project on the Fantasy Gold chain. Users may also download the extension in order to have an FGC wallet directly in their browser immediately.
FGCLite will be used on https://bling.network and https://swap.bling.network in the near future. It is also an important step to rebuilding our daily fantasy sports (DFS) platform DraftDaily as a fully decentralized fantasy sports dApp where the DraftDollars FGC20 token will be used to play in contests.
The question many FGC holders will be asking is: “Can I use my FGCLite wallet to Stake my FGC coins?” Due to the fact that staking requires your wallet to report as a full node and download and maintain a full copy of the FGC blockchain; for now, the answer to this question is no, you cannot. Since FGCLite does NOT download the chain, it cannot be used for staking.
When it comes to staking, it is currently advised that staking FGC is serious business and doing so on a daily use Windows machine is NOT recommended especially for novice users. Please visit https://github.com/FantasyGold/guides for info on staking. Offline delegated staking will be available in the next major Fantasy Gold Core release. Upon the implementation of offline staking protocols, the door is opened to build a light wallet which will be in a position to stake.
Fantasy Gold has a number of new projects in the works. If you are interested in learning more, please follow us on the social media links below.