We publish the trustlines-clientlib to npm as a ES6 module.
To install run the following command:
If you want to build the library from source run
This will create three different builds:
- ES6 module in
- CommonJS module in
- Bundled JS injectable into browser in
We assume the usage of the
trustlines-clientlib ES6 module in the following.
To start using the trustlines-clientlib you first have to configure the relay server you want to connect to. You can either connect to a local develop relay server or use publicly available ones.
You have to have all components of the trustlines protocol running. A convenient way to achieve this is by using our end2end setup.
To run the example make sure to have MetaMask installed and connected to a JSON RPC.
This serves the injected web3 example app on
http://127.0.0.1:8080. You can find the app under