1.0.15 • Published 1 year ago

@paymentnet/requester v1.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

ts-requester

Request Transfer Sequencer over websocket

Install

$ npm install @paymentnet/requester
$ yarn add @paymentnet/requester

Usage

import Requester from "@paymentnet/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()
1.0.15

1 year ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.11

2 years ago

1.0.10

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