1.1.0 • Published 12 months ago

@amax/amaxwallet-adapter-unisat v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@amax/amaxwallet-adapter-unisat

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

Demo

import { UnisatAdapter } from '@amax/amaxwallet-adapter-unisat';

const adapter = new UnisatAdapter();
// 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: UnisatAdapterConfig)
interface UnisatAdapterConfig {
    rpc?: string;
    walletProviderLocalStorageKey?: string;
    btcOwnerContract?: string;
    btcProxy?: string;
    checkTimeout?: number;
}