Installation
Installing the Webnative SDK
You can add the webnative SDK to a project by loading it from a CDN or installing it with a package manager.

CDN

For prototyping or experimentation, you can use the latest version of the SDK.
1
<script src="https://unpkg.com/[email protected]/dist/index.umd.min.js"></script>
Copied!
We recommend linking to a specific version in production to avoid unexpected changes.

Package Manager

We recommend installing with a package manager for larger projects that use build tools or bundlers.
Install the SDK with npm or your preferred package manager.
1
npm install webnative
Copied!
Import the SDK in your application.
1
// ES6
2
import * as wn from 'webnative'
3
​
4
// Browser/UMD build
5
const wn = self.webnative
Copied!
Build Target. Webnative uses cryptographic libraries that rely on BigInt and other modern browser standards. In some cases, you may need to set your build tool or bundler to target es2020 to use webnative.
Last modified 2mo ago
Export as PDF
Copy link