QuickStart

Demo

Under the demo directory, we provide the sample webpage that shows example usage of the library. To run it execute the following:

  1. Build the library

bun install
bun run build
  1. Run the demo

cd demo
npm install
npm run dev

The demo fetches configuration from the .env file. We provided example .env here.

The demo communicates with the backend service. Run it before using the demo page.

The Backend

The library communicates with the backend service. The example implementation of such service is accessible here (private registry). Please refer to the backend documentation in order to run the service.

The above package registry is currently private. Please contact us for the access.

The demo page uses WalletProviderServiceClient object to connect to the backend and send requests.

The example backend service runs by default on localhost:8090. Set the .env file for the demo page (in the demo folder) as follows to reach it:

VITE_ASSETS_WALLET_PROVIDER_ID=WalletProvider
VITE_WALLET_PROVIDER_URL=ws://localhost:8090/v1

Using the library:

The library is published on npmjs registry.

Install it in your project as usual:

npm i @silencelaboratories/walletprovider-sdk

Documentation

For a description of classes, interfaces, and types, please refer to documentation.

Last updated