@kaas-devteam/ts-requester
v1.0.1
Published
Requester to Transfer sequencer service over websocket
Downloads
1
Readme
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()