Ala API
Application programming interface to ALA blockchain nodes. This is mostly for read-only API calls. If you decide you need to sign transactions, your better off using this API in the alaexplorerjs package.
Requirement
Build and run alad or direct requests to a public testnet or production node.
Usage
api = // Or api = require('./src') testnet = api // See ./src/testnet.js for configuration // Any API call without a callback parameter will print documentation: description,// parameters, return value, and possible errors. All methods and documentation// are created from JSON files in alaexplorerjs/json/api/v1..testnet // A Promise is returned if a callback is not provided.testnettestnet // For callbacks instead of Promises provide a callback {err ? console : console} // The server does not expect any parameters only the callback is neededtestnet // Parameters are added before the callbacktestnet // Parameters can be an objecttestnettestnet
Configuration
api = // Or api = require('./src') options = httpEndpoint: 'http://127.0.0.1:8888' // default debug: false testnet = api
API Documentation
API methods and documentation are generated from:
Environment
Node 6+ and browser (browserify, webpack, etc)
TODO
Automate code-coverage after a public testnet is available.