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.
Environment to use.
API key to use.
Additional constructor options.
Initialize storage relating to a CoreCapsule instance.
Sets the email associated with the CoreCapsule instance.
Email to set.
Sets the phone number associated with the CoreCapsule instance.
Phone number to set.
Country Code to set.
Creates a new user.
Email to use for creating the user.
Passes the email code obtained from the user for verification.
Verification code to verify.
Checks if a session is active and a wallet exists.
Creates several new wallets with the desired types.
If true, the wallets’ recovery share will not be distributed.
The types of wallets to create.
Signs a message.
ID of the wallet to sign with.
Base64 encoding of exact message that should be signed.
Signs a transaction.
ID of the wallet to sign the transaction from.
RLP encoded tx as base64 string.
Chain ID of the chain the transaction is being sent on.
Logs the user out.
Preserves the stored pregen wallets in memory after the logout.
Was this page helpful?