JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q45854F
  • License MIT

NFT Authentication SDK with UI Components

Package Exports

  • chain-portal

Readme

Example usage

import React from 'react';
import { WalletConnectButton } from 'chain-portal';

function App() {
  const handleConnect = async (provider: string, account: string) => {
    console.log(`Connected to ${provider} with account ${account}`);
  };

  const handleError = (error: Error) => {
    console.error('Connection error:', error.message);
  };

  return (
    <WalletConnectButton
      onConnect={handleConnect}
      onError={handleError}
      theme="light"
    />
  );
}