@amax/amaxwallet-adapter-unisat
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i @amax/amaxwallet-adapter-unisat

Weekly Downloads

4

Version

1.1.0

License

MIT

Unpacked Size

4.73 MB

Total Files

35

Last publish

Collaborators

  • armoniametachain