@kaas-devteam/ts-requester
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

ts-requester

Request Transfer Sequencer over websocket

Install

$ npm install @kaas-devteam/ts-requester
$ yarn add @kaas-devteam/ts-requester

Usage

import Requester from "@kaas-devteam/ts-requester"

const requeter = new Requester("ws://<YOUR_ENDPOINT>")

async function start() {
    // Asynchronously send message through Websocket and asynchronously retrieve the result
    // The library internally establishes the correspondence between requests and responses
    const data = await requester.send({req: "tx.detail", arg: {txId: "<TX_ID>"}})
    return data
}

start()

Readme

Keywords

none

Package Sidebar

Install

npm i @kaas-devteam/ts-requester

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

13.8 kB

Total Files

6

Last publish

Collaborators

  • czr
  • 189