OrbPro2 a Cesium distribution

WalletWidget

new Cesium.WalletWidget(container, options)

A widget for crypto wallet login functionality. Displays a wallet icon when logged out and a user icon when logged in. Clicking the button opens a modal for wallet connection or account management.
Name Type Description
container Element | string The DOM element or ID that will contain the widget.
options object optional Configuration options.
Name Type Description
onConnect function optional Callback when user clicks connect. Should return a Promise resolving to { address, displayName }.
Throws:
  • DeveloperError : Element with id "container" does not exist in the document.

Members

Gets the parent container.
Gets the view model.

Methods

Destroys the widget.
Returns:
true if the object has been destroyed, false otherwise.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.