Deploy

Once a dApp has been written, it can be compiled and deployed to a local or remote blockchain network. Deploying dApps is similar to how regular applications are deployed currently, however there are some differences. One major difference is that to deploy an application to a public blockchain network, an account must be supplied with tokens in order to cover the deployment costs. However, when deploying to a local network through the Aion4j plugin there is no need to create an account or supply it with test tokens, as everything is contained within the local network.

Compile and deploy the contract.

Local

Run this command by right clicking anywhere on the contract and selecting Aion Virtual MachineEmbeddedDeploy.

Deploy to Embedded AVM

You should see a notice when the contract has successfully deployed:

Successful Deployment Notice

Remote

Run this command by right clicking anywhere on the contract and selecting Aion Virtual MachineRemoteDeploy. You will be prompted to enter a node URL and deployer address if you haven’t filled them in already.

This command will compile your contract before attempting to deploy, unless you have specified that you do not want this to happen in the configuration options.