MCPcopy Index your code
hub / github.com/cosmos/cosmos-sdk

github.com/cosmos/cosmos-sdk @v0.54.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.54.3 ↗ · + Follow
71,820 symbols 207,621 edges 2,659 files 28,741 documented · 40% 2 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cosmos SDK

banner

License: Apache-2.0 Go Reference Go report card

Discord Imported by

The Cosmos SDK is a modular, open-source blockchain SDK for building secure, high-performance Layer 1 chains with full customizability used by 200+ chains in production. Developers can use the Cosmos SDK to easily and quickly spin up custom blockchains that can natively interoperate.

The Cosmos SDK is tailored for building secure, sovereign application-specific blockchains. Developers building with the Cosmos SDK can use predefined modules that cover standard blockchain functionality or create custom modules for their specific use case. This composable architecture enables robust customization. The SDK provides abstractions for permissioning, governance, state management, account abstraction, tokenization processes, application logic, and more.

Cosmos SDK blockchains get interoperability out-of-the-box via a native integration with the Inter-Blockchain Communication Protocol (IBC). ibc-go is implemented as a Go module in the Cosmos SDK.

While the Cosmos SDK is plug-and-play with any consensus engine, we recommend using CometBFT for a fast, battle-tested, high-throughput, configurable BFT state machine. CometBFT is developed as part of the Cosmos Stack and its releases are updated alongside the SDK.

WARNING: The Cosmos SDK has mostly stabilized, but we are still making some breaking changes.

Quick Start

To learn how the Cosmos SDK works from a high-level perspective, see the Cosmos SDK High-Level Intro.

If you want to get started quickly and learn how to build on top of Cosmos SDK, visit Cosmos SDK Tutorials. You can also fork the tutorial's repository to get started building your own Cosmos SDK application.

Note: We advise to always use the latest maintained Go version for building Cosmos SDK applications.

Modules

The Cosmos SDK maintains a set of modules that can be included in your blockchain application. For more information on modules, see our introduction doc.

Enterprise Modules

In addition to the core SDK modules, we maintain enterprise-grade modules designed for specialized use cases such as permissioned networks and consortium chains. These modules are located in the enterprise/ directory and have different licensing terms than the core SDK.

Maintainers

Cosmos Labs maintains the core components of the stack: Cosmos SDK, CometBFT, IBC, Cosmos EVM, and various developer tools and frameworks. The detailed maintenance policy can be found here. In addition to developing and maintaining the Cosmos Stack, Cosmos Labs provides advisory and engineering services for blockchain solutions. Get in touch with Cosmos Labs.

Cosmos Labs is a wholly-owned subsidiary of the Interchain Foundation, the Swiss nonprofit responsible for treasury management, funding public goods, and supporting governance for Cosmos.

The Cosmos Stack is supported by a robust community of open-source contributors.

History

The Cosmos SDK was first released in 2019, and the first blockchain to use the SDK in production was the Cosmos Hub. Today, the Cosmos SDK is a popular, battle-tested, open-source framework used by hundreds of chains.

The Cosmos Hub still receives the most up-to-date Cosmos SDK versions. The Cosmos Hub application, gaia, has its own cosmos/gaia repository.

Developer Community and Support

The issue list of this repo is exclusively for bug reports and feature requests. We have active, helpful communities on Discord, Telegram, and Slack.

| Need Help? | Support & Community: Discord - Telegram - Talk to an Expert - Join the #Cosmos-tech Slack Channel |

Documentation and Resources

View the Cosmos SDK documentation: https://docs.cosmos.network/

Cosmos Stack Libraries

Disambiguation

This Cosmos SDK project is not related to the React-Cosmos project (yet). Many thanks to Evan Coury and Ovidiu (@skidding) for this Github organization name. As per our agreement, this disambiguation notice will stay here.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 54,451
Function 10,182
Struct 5,143
TypeAlias 1,180
Interface 700
FuncType 128
Class 36

Languages

Go97%
TypeScript2%
C++1%
C1%
Java1%

Modules by API surface

api/tendermint/abci/types.pulsar.go1,810 symbols
x/tx/internal/testpb/unknownproto.pulsar.go1,388 symbols
testutil/testdata/testpb/unknonwnproto.pulsar.go1,388 symbols
enterprise/group/api/cosmos/group/v1/query.pulsar.go915 symbols
api/cosmos/staking/v1beta1/query.pulsar.go896 symbols
enterprise/group/api/cosmos/group/v1/tx.pulsar.go895 symbols
api/cosmos/bank/v1beta1/query.pulsar.go874 symbols
api/cosmos/base/reflection/v2alpha1/reflection.pulsar.go839 symbols
api/cosmos/distribution/v1beta1/query.pulsar.go838 symbols
api/cosmos/base/tendermint/v1beta1/query.pulsar.go804 symbols
testutil/testdata/unknonwnproto.pb.go772 symbols
x/tx/internal/testpb/signers.pulsar.go770 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add cosmos-sdk \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page