@slide-computer/signer-transport-stoic
TypeScript icon, indicating that this package has built-in type declarations

3.6.4 • Public • Published

@slide-computer/signer-transport-auth-client

JavaScript and TypeScript library to communicate with Stoic Wallet on the Internet Computer.


Installation

Using Stoic transport:

npm i --save @slide-computer/signer-transport-stoic

In the browser:

import { StoicTransport } from "@slide-computer/signer-transport-stoic";

To create a Stoic transport, run

const transport = await StoicTransport.create();

Either use with @slide-computer/signer

const signer = new Signer({transport});

Or directly in your custom implementation

const channel = await transport.establishChannel();
const listener = channel.registerListener((response) => {
  // Process incoming responses
});
// Send outgoing requests
channel.send(JSON_RPC_REQUEST);

Package Sidebar

Install

npm i @slide-computer/signer-transport-stoic

Weekly Downloads

88

Version

3.6.4

License

MIT

Unpacked Size

327 kB

Total Files

70

Last publish

Collaborators

  • sea-snake