0.2.4 • Published 4 months ago

@martianwallet/sui-wallet-adapter v0.2.4

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

Martian Sui Wallet Adapter


To get started first install the npm package for the Martian Sui wallet adapter

npm install @martianwallet/sui-wallet-adapter

At the root of your application, you can then set up the Martian Sui wallet adapter:

import { WalletProvider } from "@mysten/wallet-adapter-react";
import {MartianWalletAdapter} from "@martianwallet/sui-wallet-adapter";

export function App() {
  const adapters = useMemo(() => [
    // Add support for all wallets that adhere to the Wallet Standard:
    new MartianWalletAdapter(),
  ], []);

  return (
    <WalletProvider adapters={adapters}>
      {/* Your application... */}
    </WalletProvider>
  );
}