zap-auth-sdk
v0.0.2
Published
```js npm install zap-auth-sdk ```
Downloads
2
Readme
Installation
npm install zap-auth-sdk
OR
yarn add zap-auth-sdk
Functions
Create wallet
import { web, WalletInfo } from "zap-wallet-sdk";
const handleCreateWallet = async () => {
try {
const walletInfo = await web.createWallet();
console.log("New wallet created:", walletInfo.address);
} catch (error) {
console.error("Error creating wallet:", error);
}
};
Import wallet
import { web, WalletInfo } from "zap-wallet-sdk";
const handleCreateWallet = async () => {
try {
const walletInfo = await web.importWallet();
console.log("Wallet imported:", walletInfo.address);
} catch (error) {
console.error("Error importing wallet:", error);
}
};