02 — Professional project · Injective Labs
Injective Hub
Blockchain ecosystem interface: wallet integrations, portfolio infrastructure and subaccount management.
- Cosmos SDKApplication-specific chains, including Injective.
- TypeScriptStrict-mode TypeScript across apps, SDKs and services.
Overview
Injective Hub is the ecosystem interface for the Injective blockchain: a single place to manage wallets, balances, staking, governance and subaccounts across the chain.
The problem
An ecosystem hub sits at the intersection of many concerns. It has to support a wide range of wallets — browser extensions, hardware devices, mobile and smart-account wallets — across both Cosmos-native and EVM-style accounts. It aggregates balances and positions from several sources, and it exposes advanced concepts like subaccounts in a way that is understandable to everyday users.
Engineering challenges
- Wallet diversity. Each wallet type has different capabilities, signing methods and failure modes. Adding one shouldn't mean touching every feature.
- Two account worlds. Cosmos SDK accounts and Ethereum-style addresses describe the same user and must be mapped consistently.
- Portfolio aggregation. Balances, staked positions and subaccount holdings come from different queries and update at different cadences.
- Subaccounts. A powerful trading primitive that needs careful UX: moving funds between subaccounts should feel as safe as a bank transfer.
Architecture
- Features
- Wallet
- Staking
- Governance
- Subaccounts
- Portfolio
- Balance aggregationbank · staking · subaccounts
- Wallet layer
- Strategy / adaptersone interface per wallet
- Account mappingCosmos ↔ EVM
- Network
- Chain queries
- Indexer
Key decisions
Wallets behind one interface
Features depend on a single wallet abstraction rather than specific wallets. Each wallet is an adapter that declares what it can do; the rest of the app asks for capabilities, not brands. That idea evolved into the Universal Wallet Manager and is demonstrated in the Wallet Adapter Playground.
Aggregate, then present
Portfolio data is fetched per source and composed in one aggregation layer, so screens consume a single, consistent view of a user's holdings.
Patterns
- Strategy / adapter pattern for wallets
- Capability-based feature gating
- Aggregation layer over multiple data sources
My contribution
I worked on the hub's wallet integrations and portfolio infrastructure, including subaccount management and the shared wallet layer used across Injective's products.