5.0.1 • Published 5 years ago

abci v5.0.1

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

js-abci

ABCI server for Node.js. Supports up to Tendermint version 0.19.

Usage

npm install abci

Requires Node.js v10.9+

let createServer = require('abci')

let server = createServer({
  info (request) {
    console.log('got info request', request)
    return { ... }
  }

  // implement any ABCI method handlers here
})
server.listen(26658)

let server = createServer(app)

Returns a net.Server that accepts ABCI connections from a Tendermint node.

app should be an object with ABCI method handler functions. Each handler receives one request argument, and can return the response value or a Promise which resolves to the response value. cb responds to the ABCI request with either the error or response value.

Supported ABCI methods are:

echo
flush
info
setOption
initChain
query
beginBlock
checkTx
deliverTx
endBlock
commit
5.0.1

5 years ago

5.0.0

5 years ago

4.0.2

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago