🚀 Installation
For integrating Face Wallet to your Dapp, you should install Face Wallet SDK and Types.
Face SDK
By running it as follows through NPM, you can install the Face SDK.
npm install --save @haechi-labs/face-sdk
Face Types
Types is a package in which various types required for using Face are defined. By running it as follows through NPM, you can install Face Types.
npm install --save @haechi-labs/face-types
CDN
If you want to use Face Wallet SDK using CDN, you can import these.
By importing it as follows, you can use Face Wallet SDK and Types.
<script src="https://cdnjs.cloudflare.com/ajax/libs/ethers/5.7.2/ethers.umd.min.js" type="application/javascript"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@haechi-labs/face-types@latest/dist/umd/index.js defer"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@haechi-labs/face-sdk@latest/dist/umd/index.js defer"></script>
<script crossorigin src="https://cdn.jsdelivr.net/npm/@haechi-labs/face-kit@latest/dist/umd/index.js defer"></script>
const { Face, Network } = window.Face;
const face = new Face({
...
});
//or
const Face = new Window.Face.Face({
...
});
Updated 2 months ago