In order to deploy a contract to ARISEN, you will need to install ARISENCLI and create an ARISEN account.
Creating An ARISEN Account
- Head over to the ARISEN Signup Service.
- Enter a 12 character username and save your 12-word mnemonic phrase and your owner/active keys in a safe place.
To install ARISECLI, run the following in your terminal:
Before you can interact with ARISECLI, you will need to startup aWallet and import your account's public keys, so that ARISECLI can sign transactions for you (like when you run the
set action to deploy a smart contract on ARISEN). To startup
awallet, run the following in a
awallet has to run in a screen, because it's a daemon that has to remain running.
Creating A Default Wallet
Now you need to create a default wallet to import your account's keys into. To do so, run the following:
This will output a long key-like password that you must save. It is required to lock/unlock the wallet. Without this password, imported keys will not be retrievable. Keep this password in a safe place.
Importing Your Keys
Now you need to import your keys.
- First, unlock your wallet:
This will prompt you for your wallet password.
Next, import your owner private key:
- Next, import your active private key:
Deploy Your Contract
To deploy your contract, you need to run the following:
In the above command, you need to replace
<username> with your ARISEN username and
CONTRACTS_DIR/hello with the folder for the
hello contract we previously created. The
hello contract (cpp/wasm files) should be in its own directory named the same as the contract, which in this case is "hello".
Testing Your Contract
Now we can test our
hi action by running the following:
You should replace "username" with your own.
This should output "Hello, < username>"
Congratulations, you have officially deployed your first contract on ARISEN.
Learn how to execute actions from within your application's frontend, here.