boltQuick Start

Installation

Install the SDK using your preferred package manager:

NPM

npm install @cryptalk/browser

PNPM

pnpm install @cryptalk/browser

Yarn

yarn add @cryptalk/browser

Usage

Here's a basic example of how to use the SDK:

import { Client } from "@cryptalk/browser";

// Create a new Cryptalk client
const client = await Client.create(signer, {
  env: "production",
});

// Start a new conversation
const conversation = await client.conversations.newConversation(peerAddress);

// Send a message
await conversation.send("Hello, !");

// Listen for new messages
for await (const message of conversation.streamMessages()) {
  console.log("New message:", message.content);
}

Vite

Add the following to vite.config.ts:

Last updated