1.1.1 • Published 1 year ago

@amax/amaxwallet-adapter-armadillo v1.1.1

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

@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;
}
1.1.1

1 year ago