Files
nym/sdk/typescript
2022-11-08 17:47:10 +00:00
..
2022-11-08 17:47:10 +00:00
2022-11-08 17:47:10 +00:00
2022-11-08 17:47:05 +00:00
2022-11-08 17:47:05 +00:00
2022-11-08 17:47:05 +00:00
2022-11-08 17:47:05 +00:00
2022-11-08 17:47:05 +00:00

Nym SDK (Typescript)

The Nym SDK for Typescript will get you creating apps that can use the Nym Mixnet and Coconut credentials quickly.

TL;DR

Include the SDK in your project:

npm install @nymproject/sdk

Open a connection to a Gateway on the Nym Mixnet:

import { client } from '@nymproject/sdk';

const session = await client.connect('<<GATEWAY>>');

This will start the WASM client on a worker thread, so that your code can stay nice and snappy.

Send a message to another user (you will need to know their address at a Gateway):

const result = await client.send('<<USER ADDRESS>>', 'Hello Timmy!');

Examples

Coming soon: