minimal Solidity compiler service
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin Change default port May 10, 2016
public/stylesheets
routes Updated documentation Oct 25, 2017
views include link to API documentation Jun 27, 2017
.gitignore First May 9, 2016
README.md
app.js Set up API routes May 10, 2016
package-lock.json Added function for adding ABI upgrading functionality. Oct 25, 2017
package.json update solc version Sep 20, 2017

README.md

Quick start

run it

npm start

setup

npm install

Web UI

After npm start, navigate to http://localhost:5011

API Docs

To view more comprehensive docs with examples visit the SmartContract.com SOLC webdocs


Compile

Endpoint: /api/compile

Description: Compiles 1 or more .sol source files.

Input:

Sources object as defined in SOLC Input JSON spec

Returns:

contracts, formal, sourceList, sources. See these keys in the SOLC Output JSON spec


Update ABI

Endpoint: /api/compile

Description:

Compiles 1 or more .sol source files.

Input:

{
    "input_ABI": [
      {
        "constant":false,
        "inputs":[],
        "name":"hello",
        "outputs":[
          {"name":"",
           "type":"string"}
        ],
        "payable":false,
        "type":"function"}
    ],
    "ABI_version": "0.3.6"
}

Returns:

{
  "updated_ABI": [
    {
     "constant":false,
     "inputs":[],
     "name":"hello",
     "outputs":[
       {
         "name":"",
        "type":"string"
       }
     ],
     "payable":true,
     "type":"function"
    },{
      "type":"fallback",
      "payable":true
    }
  ]
}