The Aergo blockchain uses Lua as the language for smart contracts. The engine used is LuaJIT, but the Just-In-Time compilation is disabled. The contracts are compiled with the aergoluac
command line tool and sent to the blockchain as bytecode. The LuaJIT version is 2.1.0-beta3.
The Aergo blockchain uses the Lua 5.1 version, but some features are disabled.
First watch this short video about how to write a simple smart contract:
The simplest method to try hacking the aergo engine is by using the brick tool
If you prefer to deploy the contracts to the blockchain (use the testnet for tests) then watch this video:
Instead of running a local server or using the test network, you can make your experiments using brick. It can be downloaded here
To create and deploy smart contracts easily, you can use the Aergo IDE
You can also compile the contracts locally with the aergoluac
command line tool, which can be downloaded here
The Aergo blockchain can be run locally with the aergosvr
command line tool, downloadable on the same link above.
The Aergo blockchain can also be run locally with Docker
On the web:
- The Aergo Connect browser extension
- The Aergo Transaction Builder
- Javascript
On the command line:
- The
aergocli
command line tool, downloadable on the GitHub releases link above. (you can automate it with bash scripts. example here)
Via your own application:
If you are using the testnet instead of a local server/network, you can use the Aergo blockchain explorer: AergoScan
If you have any problem, you can make technical questions on Discord