@amax/amaxwallet-adapter-metamask
v1.1.0
Published
Wallet adapter for metamask snap Wallet.
Downloads
8
Maintainers
Readme
@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;
}