Pay network fees and vote
POLYX is the network transaction fees token as well as the governance token that helps with decentralised network management.
You will need POLYX to complete the exercises.
The Testnet is where you can practise using Polymesh without material consequences. As the name suggests, it is a fully functional Polymesh network. The main differences are:
- The funds and securities on the Testnet aren't real and have no material value;
- Future testnets may be initialised in the future and the present Testnet may be retired;
- You can acquire testnet POLYX at virtually no cost.
Since you will interact with the Testnet while you pursue the suggested exercises, let's get some free Testnet POLYX to work with.
It will be helpful to understand a little bit of history to understand how this process works and why it works the way it does.
In summary, the original Polymath network and network token, POLY, was deployed on the Ethereum Mainnet. Those POLY tokens do indeed have material value. Consequently, the upgrade process is backward-compatible. Owners of POLY can upgrade their POLY to POLYX at a ratio of 1:1.
This process works by locking POLY on the Ethereum network, which means sending them to a contract that takes them out of circulation. Without delving too deeply into the smart contract details, suffice it to say users send their POLY to the contract, then the POLYX is sent to the Polymesh signing key.
The technical challenge is that these are separate blockchains. So, the bridge involves an off-chain process that monitors Ethereum for incoming POLY and releases POLYX on Polymesh in response to events observed on Ethereum. Also, since Ethereum and Polymesh use different account schemes, the UI will associate the sending Ethereum address with the receiving Polymesh signing key.
The preliminary conditions are familiar to POLY holders who are already accustomed to Ethereum tokens. And, the testnet implementation helps test and verify the upgrade process. In order to get some free POLYX, you will first establish the initial conditions of a POLY holder on Ethereum.
MetaMask is a browser plug-in wallet that is widely used on Ethereum.
You can use any wallet you like. Just extrapolate from the MetaMask signing instructions to follow the procedures of your wallet of choice.
If you don't already have MetaMask, search for it in your browser plug-ins area or get it from here: https://metamask.io/
Take your time and follow the on-screen instructions to create one account. Initially, it will have no money, which is fine.
It's a good idea to open MetaMask and change to the Goerli Test Network now. Click the icon in the plug-ins tray and click on the network selection box at the top of the applet. Select Goerli Test Network.
Ethereum uses ETH to pay for transaction fees. Since we cannot complete this process without sending transactions, we will need some Testnet ETH to pay for them.
Testnet ETH has no value and it is given away. All we have to do is ask. You can ask a friend, or use a faucet which is an automated or semi-automated system that simply gives it away. Automated systems tend to have anti-spam/anti-abuse mechanisms to help ensure everyone will receive enough to move forward.
We can recommend using:
- ETH Faucet: Visit this website which uses your Facebook/Twitter account to authenticate users: https://faucet.goerli.mudit.blog//
- Goerli Faucet: Visit this website and post your Ethereum address - Funds are on the way! https://faucets.chain.link/goerli
You may be asked for your Ethereum address. Open MetaMask, hover over your address and click on the clipboard icon that appears.
Your ETH balance will increase after you request the funds and the transaction is confirmed. You can see that in MetaMask.
Congratulations! You have some money.
As you may have already guessed, Polymath has published a contract on Ethereum that gives away free Testnet POLY. That is what you need to proceed across the bridge and convert it to POLYX on Polymesh.
Point your browser to the contract: https://goerli.etherscan.io/address/0x9e32c0eff886b6ccae99350fd5e7002dced55f15#writeContract
If you see
Connect to Web3, press it. This will open MetaMask so you can confirm you wish it to talk to this website. Select the account you wish to use. Choose the account that has Testnet ETH. It should say
Connected - Web3 and your account.
Now, scroll down to
getTokens and expand it. Fill in the
_amount with the number of POLY you would like. This uses 18 decimal places with no period (de facto standard for Ethereum tokens), so 50,000 POLY (suggested) is
_recipient is you. Copy your address from MetaMask by opening the applet, hovering over your account, and clicking the clipboard. Paste your address and press
write to send this transaction to the contract.
MetaMask tells you the web page is trying to do something with your funds and asks you to confirm. Press
Now that you have Testnet POLY and a way to pay for transactions on the Ethereum network, you can proceed to the Polymesh Bridge to convert your POLY to POLYX.
Point your browser to the dashboard explorer and select POLY to POLYX Bridge - https://dashboard.polymath.network/explore
Or, go directly to: https://polybridge.polymesh.network/
MetaMask will not talk to this website unless you authorise it, so click
Connect with MetaMask to link your account.
The process begins by asking for your Polymesh signing key.
Open your Polymesh Wallet and copy your signing key, then paste it into
Your Polymesh Address. This key will receive the POLYX.
If you completed CDD (you should), then the site will indicate that your Polymesh Account is verified. If not, then you will be directed to customer due diligence.
Enter an amount of your POLY to upgrade. You cannot upgrade more than what is in your wallet.
When everything is ready, the site will confirm your intentions.
MetaMask will, again, ask you to confirm that you intend to send the specified amount of POLY to the Polymesh Bridge. Confirm this transaction.
Now, you will see two stages of the process unfold. First, Ethereum will process the transaction that sends your Testnet POLY to the bridge. This is the "Locking" transaction. Then, Polymesh will observe this event on Ethereum and send you an equal amount of POLYX.
When everything confirms, you will have POLYX in your wallet.
Congratulations! You have POLYX in your verified account. This means you are ready to follow the exercises. Why not start by creating a security token?