0.0.2 • Published 11 months ago

zap-auth-sdk v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

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);
  }
};
0.0.2

11 months ago

0.0.1

11 months ago