Welcome to the hosted Sophia compiler for the Æternity Blockchain

The hosted compiler allow you to use different version of the Sophia compiler using the http interface.

The available compiler versions are listed below, to understand the difference between versions refer to the official changelog.

To select a specific compiler use the header name Sophia-Compiler-Version with the value the versions above, if no header is present the default compiler will be used.

Here is the curl example to select the compiler version 3.1.0:

curl -i \
-H "Sophia-Compiler-Version: 3.1.0" \
-H "Content-Type: application/json" \
https://compiler.aepps.com/version

HTTP/1.1 200 OK
Content-Length: 19
Content-Type: application/json
Server: Cowboy

{"version":"3.1.0"}

To explore the smart contract capabilities you can use the contract editor and the middleware to track the contract transactions and events (both on mainnet and testnet).

For additional resources and support join the forum and follow the aeternityTECH twitter account.

To retrieve the list of available compilers in json format use the Accept: application/json header.

curl -i \
-H "Accept: application/json" \
https://compiler.aepps.com

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 255

{
  "Version":"1.0.0",
  "Header":"Sophia-Compiler-Version",
  "Compilers":
  [
    {
      "version": "3.2.0",
      "is_default": false
    }, 
    {
      "version": "3.1.0",
      "is_default": true
    },
    ...
  ]
}

⚠️ The hosted compilers are provided for demo/development/testing purpose and should not be used in a production environment. Make sure to run your own compiler if necessary on production.