ZCN smart contract allows conversion of native ZCN token network to Ethereum wrapped WZCN token and from wrapped Ethereum WZCN token to native ZCN token through minting and burning of tokens using zwalletcli.\
Get Started
Import your Ethereum Account
./zwallet bridge-import-account command can be used to import your ethereum account Here are the parameters for the command.
Sending mint transaction to Ethereum
Payload amount: 10000000000
Payload nonce: 2
ZCN transaction ID: 67b7e0ea1d6522b62e93b22aef140dc59d2a61c6b4469a3c8f8cb8ae09b32eaa
Starting to mint WZCN
failed to prepare bridge: failed to pack arguments: argument count mismatch: got 4 for 5
Burn WZCN and Mint ZCN
Run the command below to list or check whether your ethereum account is imported successfully in key vault. If not import your Ethereum Account.
./zwallet bridge-list-accounts
Sample Response:
Ethereum available account: $ETHEREUM_WALLET_ID
Fill your ethereum wallet with WZCN tokens can be done using metamask.
Burn WZCN tokens using the following command :
./zwallet bridge-burn-wzcn --amount 1
List Authorizers
./zwallet bridge-list-auth command can be used to list all authroizers available to validate client transactions.
./zwallet bridge-config command can be used to view ZCNBridge configuration. To understand how to initialize a bridge client configurations check Intialize a Bridge Client.