@amax/amaxwallet-adapter-aplink
v1.1.0
Published
Wallet adapter for aplink Wallet.
Downloads
4
Maintainers
Readme
@amax/amaxwallet-adapter-aplink
This package provides an adapter to enable Amax DApps to connect to the APLink Wallet App.
Demo
import { AplinkAdapter } from '@amax/amaxwallet-adapter-aplink';
const adapter = new AplinkAdapter();
// 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: AplinkAdapterConfig)
interface AplinkAdapterConfig {
rpc?: string;
ws?: string;
scope?: string;
lang?: string;
walletProviderLocalStorageKey?: string;
}