@credenza3/core-web-evm-metamask-ext
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

CREDENZA WEB SDK MetamaskExtension

Installation

npm i @credenza3/core-web-evm-metamask-ext

import { MetamaskExtension } from '@credenza3/core-web-evm-metamask-ext'

Usage

Create the SDK instance

const sdk = new CredenzaSDK({
  extensions: [
    new EvmExtension({
      chainConfig,
      extensions: [new MetamaskExtension()],
    })
  ],
})

Login with metamask and set access token

await sdk.evm.metamask.login()

Get metamask address

const address = await sdk.evm.metamask.getAddress()

Readme

Keywords

none

Package Sidebar

Install

npm i @credenza3/core-web-evm-metamask-ext

Weekly Downloads

63

Version

0.0.7

License

MIT

Unpacked Size

10.2 kB

Total Files

5

Last publish

Collaborators

  • mike.avvad
  • credenza
  • fokindmitr