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

3.7.0 • 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);

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

    Package Sidebar

    Install

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

    Weekly Downloads

    228

    Version

    3.7.0

    License

    MIT

    Unpacked Size

    226 kB

    Total Files

    34

    Last publish

    Collaborators

    • sea-snake