@tchain/tcabci-read-js-client

1.3.7 • Public • Published

TCABCI Read Node Javascript WebSocket Client

TransferChain Fastest Read Network WebSocket Client
Read Node Address: https://read-node-01.transferchain.io
Read Node WebSocket Address: wss://read-node-01.transferchain.io/ws

Installation

$ npm i @tchain/tcabci-read-js-client

Example

Subscribe, Listen and Unsubscribe Example

const tcAbciClient = require("@tchain/tcabci-read-js-client")

const client = new tcAbciClient()
// OR
const client = new tcAbciClient(['https://read-node-01.transferchain.io',
    'wss://read-node-01.transferchain.io/ws'])

client.Start()

client.Subscribe(["<your-public-address-one>", "<your-public-address-two>",])

client.SetListen(() => {
    // If a transaction has been sent to your addresses, the callback you set here will be called.
})

client.Unsubscribe()
client.Stop()

License

tcabci-read-js-client is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Readme

Keywords

none

Package Sidebar

Install

npm i @tchain/tcabci-read-js-client

Weekly Downloads

49

Version

1.3.7

License

Apache-2.0

Unpacked Size

37.6 kB

Total Files

11

Last publish

Collaborators

  • batuhanay97
  • akdilsiz
  • mertobaser