0.0.3 • Published 11 months ago

@dogiwallet/browser-sdk v0.0.3

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

🦊 DOGI Wallet Browser SDK

🚀 The easiest way to integrate DOGI Wallet into your Web3 dApp!

⚡️ Quick Install

npm i @dogiwallet/browser-sdk

🔥 Why Choose DOGI Wallet SDK?

  • 🛠️ Simple, developer-friendly API
  • ⚡️ Lightweight integration
  • 🔒 Secure and reliable
  • 🎯 Built for modern web frameworks
  • 💪 TypeScript support out of the box

🚀 Usage

Method 1: Quick Setup

import { initDogiWallet } from "@dogiwallet/browser-sdk";

// Get started in just one line! 🎉
const dogi: DogiWallet | undefined = initDogiWallet();

Method 2: React Integration ⚛️

Perfect for React & Next.js projects! 🎨

import { useDogiWallet, DogiWalletProvider } from "@dogiwallet/browser-sdk";

// 🎯 Wrap your app with our provider
const Layout = () => {
  return (
    <DogiWalletProvider>
      <AppEntyPoint />
    </DogiWalletProvider>
  );
};

// 🔌 Use our hook to access wallet features
const AppEntyPoint = () => {
  const { isConnected, dogi } = useDogiWallet();

  return (
    <div>
      {dogi && <div>🦊 DogiWallet injected</div>}
      {isConnected && <div>✅ DogiWallet connected</div>}
    </div>
  );
};

🌟 Features

  • 🔄 Seamless wallet connection
  • 📱 Responsive design support
  • 🛡️ Built-in TypeScript types
  • 🎨 React hooks & components
  • 🚀 Easy to integrate
0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago