CREDENZA WEB SDK Core
Registering client
Visit https://developers.credenza3.com/ sign in and create your Client
Installation
npm install @credenza3/web-sdk
Extensions
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) => {})