Cosmos Quickstart
Introduction
Capsule for Cosmos offers a comprehensive solution for integrating Cosmos blockchain functionality into your application. With Capsule, you can:
Simplify User Onboarding: Enable users to join your application effortlessly using email, phone number, or social login.
Unify Accounts Across Ecosystems: Provide a seamless experience with unified accounts that work across both EVM and Cosmos ecosystems.
Enable In-App Transaction Signing: Empower users to sign Cosmos transactions directly within your application, enhancing user experience and security.
Leverage Cosmos-Specific Features: Access tailored interfaces for gas management and other Cosmos-specific functionalities.
Capsule can be integrated either directly or through our partnership with Leap Wallet.
Note: To use Capsule, you will need a CAPSULE_API_KEY
and CAPSULE_ENV
. You can request these from here.
Direct Capsule Integration
Installation
To integrate Capsule directly into your project, install the necessary packages:
Configuration and Usage
Follow these steps to set up and use the Capsule Proto Signer for Cosmos:
Note: You need to instantiate a Capsule client instance before using the Proto Signer. Refer to the Web Modal & SDK Setup documentation for details on creating a Capsule client.
For comprehensive examples of signing transactions, please consult our signing transactions documentation.
Integration via Leap Wallet Partnership
We've collaborated with Leap Wallet to provide enhanced functionality:
Cosmos Kit Capsule connector
Cosmos-specific in-wallet UI for balance viewing, transaction history, token transfers, swapping, and bridging within your application
Using Leap's Embedded Solution
Installation
To use Capsule via Leap's Cosmos Kit wallet adapter, install these packages:
Configuration and Usage
Set up and use the Leap Cosmos Kit wallet adapter as follows:
Note: While optional, we highly recommend passing the opts
values in the options
object. These settings allow for customization of the Capsule Portal, ensuring it's fully branded to match your application. The emailPrimaryColor
, homepageUrl
, and portalTheme
properties enable you to tailor the look and feel of the Capsule experience to seamlessly integrate with your app's design.
With this configuration, you're ready to use Leap's custom Capsule integration. For more details, visit:
Real-world Examples
Here are some live examples of the Leap's Capsule provider in action:
Troubleshooting and Support
If you encounter any issues or have questions, please refer to our extensive documentation or reach out to our dedicated support team for assistance.
Last updated