@trivo/abci
TypeScript icon, indicating that this package has built-in type declarations

7.0.1 • Public • Published

js-abci

ABCI server for Node.js. Supports Tendermint version 0.34+.

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

/@trivo/abci/

    Package Sidebar

    Install

    npm i @trivo/abci

    Weekly Downloads

    1

    Version

    7.0.1

    License

    MIT

    Unpacked Size

    3.51 MB

    Total Files

    9

    Last publish

    Collaborators

    • trivo