This is a guide for the Beta mainnet release of Civiport
The very fist thing you need to do is download the CiviPort Client from here. Make sure you pick the right download for your operating system.
The donwload is a zip file which will need to be extracted:
After downloading navigate to the directory the zip file was downloaded to and right click the flie. Choose Extract All
.
A window will pop up and ask you to choose the path of the extraction. You can make this whatever you want.
The easiest way to access the client is as follows:
- Navigate to the extracted files in windows explorer.
- in the URL bar type
CMD
and press enter
This will open the Windows Command Prompt which looks like this:
To start the client and create a new wallet use the following:
Client.exe --wallet-file WALLET --create-wallet
This will create a wallet file called WALLET
in the same directory as the client.
NOTE --create-wallet only needs to be passed when creating a new wallet. When opening an existing wallet --create-wallet is not required.
This will start the CiviPort Client and connect to CiviSwarm and the bridge contracts.
Check your balances with token-balance
for FMTA and other ERC-20's or balance
for the Native chain's coin balances.
Starting an FMTA teleport is simple. To make a teleport of 10 FMTA from the Ethereum network to Binance Smart Chain using the teleport
command enter:
teleport 10 FMTA
The client will ask for a source and destination network as well as get a gas estimate. It then asks permission to send and provides you with the Transaction ID (TX Passed) as well as Teleport ID once complete. You can retrive all your wallets pending Teleport ID's by using the pending
command.
To complete the teleport we simply energize it using the energize
command.
energize 20b48c6022a68bb25bf760d954c7e67ff06dc85297356068c9fb3fd3e88991ec
or alternatively just use energize
and CiviPort will energize the last pending teleport.
That's it! You have succesfully sent Test FMTA from the Ethereum network to Binance Smart Chain!
The above applies to Linux and mac operating systems but start the client using ./client --wallet-file WALLET --create-wallet
and your prefered method for unzipping.
Staking with CiviPort CLI is super easy! All you need to do is type stake <amount>
and you will be prompted to select a network. a Gas estimate will be provided and you will be asked to select yes or no to send the transaction.
To Check how many FMTA you have staked use the stakes
command.
To roll your pending rewards into your curent position use the compound
command.
To Check pending rewards use the rewards
command. You will be prompted to choose a network and be given a gas estimate as well as the choice to senmd the transaction.
To withdraw pending rewards use the take
command. You will be prompted to choose a network and be given a gas estimate as well as the choice to senmd the transaction.
To remove stake and withdraw any pending rewards use the unstake
command like unstake <amount>
. You will be prompted to choose a network and be given a gas estimate as well as the choice to senmd the transaction.