Web & React SDK APIs
CoreCapsule Class
The CapsuleCore
class provides the core Javascript implementation of the Capsule SDK, managing
wallet operations, authentication, and transactions.
Properties
Static version of the CoreCapsule class.
Context object for the CoreCapsule instance.
The IDs of the currently active wallets, for each supported wallet type.
Wallets associated with the CoreCapsule instance.
The addresses of the currently active external wallets.
External wallets associated with the CoreCapsule instance.
Whether the instance has multiple wallets connected.
Base theme for the emails sent from this Capsule instance.
Hex color to use as the primary color in the emails.
Linkedin URL to link to in the emails.
Github URL to link to in the emails.
X (Twitter) URL to link to in the emails.
Support URL to link to in the emails.
URL for your home landing page.
Encryption key pair generated from loginEncryptionKey.
Theme to use for the portal.
Types of wallets supported by this CoreCapsule instance.
Methods
Constructs a new CoreCapsule instance.
Initialize storage relating to a CoreCapsule instance.
Sets the email associated with the CoreCapsule instance.
Sets the phone number associated with the CoreCapsule instance.
Creates a new user.
Passes the email code obtained from the user for verification.
Checks if a session is active and a wallet exists.
Creates several new wallets with the desired types.
Signs a message.
Signs a transaction.
Logs the user out.
Was this page helpful?