@credenza3/web-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

CREDENZA WEB SDK Core

Registering client

Visit https://developers.credenza3.com/ sign in and create your Client

Installation

npm install @credenza3/web-sdk

Extensions

OAuthExtension

AccountExtension

EvmExtension

-- WalletConnectExtension

-- MetamaskExtension

Usage

Create the SDK instance

const sdk = new CredenzaSDK({
  clientId: <CLIENT_ID>,
  env?: CredenzaSDK.SDK_ENV.STAGING
  extensions: [
    new EvmExtension({chainConfig, extensions: [
      new MetamaskExtension()
      new WalletConnectExtension()
    ]}),
    new OAuthExtension(),
    new AccountExtension(),
  ], // select necessary extensions
})

Events

const event = CredenzaSDK.SDK_EVENT.<EVENT_NAME>
const unsubscribe = sdk.on(event, (data) => {})
sdk.once(event, (data) => {})

Readme

Keywords

none

Package Sidebar

Install

npm i @credenza3/web-sdk

Weekly Downloads

1

Version

0.0.8

License

MIT

Unpacked Size

10.9 kB

Total Files

7

Last publish

Collaborators

  • mike.avvad
  • credenza
  • fokindmitr