Remarks

Public API for the widget

interface WidgetPublicApi {
    injectWalletContext: ((attachToElementInstance, walletContext) => void);
}

Properties

injectWalletContext: ((attachToElementInstance, walletContext) => void)

API for injecting wallet context into the widget. Allows to pass a wallet instance to the widget from the outside

Type declaration

    • (attachToElementInstance, walletContext): void
    • Parameters

      • attachToElementInstance: HTMLElement
      • walletContext: WalletContextState

      Returns void

Returns

void