neo-api
NEO JavaScript API for connecting to a NEO Network.
NEO JavaScript API
Interface methods provide access to JSON-RPC NEO Nodes as well as Rest Services to AntChain and Neon.
Available on npm
Building
npm run build
Creates two bundles: One for node module dist/neo.node.js
and one for the Browser dist/neo.js
Installing
Each bundle is a UMD module and supports AMD, CommonJS, and vanilla environments. Developers can create a custom bundle using Rollup or any preferred bundler.
Usage
NodeJS
var neo = require('neo.node.js');
HTML:
Use neo
object in your JavaScript environment.
var localNode = neo;localNode;localNode;
var options = baseUrl: 'http://www.antchain.org/api/v1/' transform: neotransformsantchain;neo;
More examples coming soon!
Test
Run all the Tests:
npm test
Run only the REST API tests:
npm test test/rest.api.js
Run only the JSON-RPC API tests:
npm test test/rpc.api.js