2.3.0 • Published 4 months ago

@tchain/tcabci-read-js-client v2.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

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

Networks

  • transferchain - v1
  • medusa - v2 (new blocks)

Installation

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

Example

Subscribe, Listen and Unsubscribe Example

import TCaBCIClient from '@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',
])
// OR
// With addresses and WebSocket library and network name, version
const client = new TCaBCIClient(
  [
    'https://read-node-01.transferchain.io',
    'wss://read-node-01.transferchain.io/ws',
  ],
  WebSocket,
  'transferchain',
  'v1',
)

client.Start()

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

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

client.SetErrorCallback(() => {
  // If network errors will be called.
})

client.SetCloseCallback(() => {
  // If server side close 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.

2.3.0

4 months ago

2.2.4

5 months ago

2.2.2

8 months ago

2.2.1

9 months ago

2.2.0

9 months ago

2.1.4

10 months ago

2.1.5

9 months ago

2.1.2

12 months ago

2.0.3

12 months ago

2.1.1

12 months ago

2.0.2

12 months ago

2.1.3

11 months ago

2.0.4

12 months ago

1.3.10

12 months ago

1.3.13

12 months ago

1.3.11

12 months ago

1.3.12

12 months ago

2.1.0

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.3.9

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago