0.1.2 • Published 8 years ago

era-javascript-api v0.1.2

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

era-javascript-api NPM version

era-javascript-api is a simple node.js wrapper for ERA REST API.

Install

npm install era-javascript-api

Usage

Era(options)

Example:

var Era = require('era-javascript-api');
	
Era.block.last(function(data) {
  console.log(data)
});

Methods

lastHeight(callback)

Block

block.last(callback)

block.first(callback)

block.signature(signature, callback)

block.height(height, callback)

block.child(signature, callback)

Blocks

blocks.from(fromheight, limit, callback)

blocks.signatures(fromheight, limit, callback)

Records

record.signature(signature, callback)

record.height(height, sequence, callback)

Addresses

address.isValid(address, callback)

address.publicKey(address, callback)

address.lastReference(address, callback)

address.unconfirmedLastRerence(address, callback)

address.genBalance(address, callback)

address.assets(address, callback)

address.assetBalance(address, asset, callback)

Tools

verifySign(message, signature, publickey, callback)

License

MIT

0.1.2

8 years ago

0.1.0

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago