@amax/amaxwallet-adapter-armadillo
v1.1.1
Published
Wallet adapter for armadillo Wallet extension.
Downloads
3
Maintainers
Readme
@amax/amaxwallet-adapter-armadillo
This package provides an adapter to enable Amax DApps to connect to the Armadillo Wallet extension.
Demo
import { ArmadilloAdapter } from '@amax/amaxwallet-adapter-armadillo';
const adapter = new ArmadilloAdapter();
// 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: ArmadilloAdapterConfig)
interface ArmadilloAdapterConfig {
permission?: string;
walletProviderLocalStorageKey?: string;
}