1.1.0 • Published 1 year ago

@amax/amaxwallet-adapter-metamask v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@amax/amaxwallet-adapter-metamask

This package provides an adapter to enable Amax DApps to connect to the MetaMask Wallet extension.

Demo

import { MetaMaskAdapter } from '@amax/amaxwallet-adapter-metamask';

const adapter = new MetaMaskAdapter();
// connect to TokenPocket
await adapter.connect();

// then you can get account
console.log(adapter.account);

// using adapter push a transaction
const TransactResult = await adapter.transact(acions);

Documentation

API

  • Constructor(config: MetaMaskAdapterConfig)
interface MetaMaskAdapterConfig {
    rpc?: string;
    walletProviderLocalStorageKey?: string;
}