Try   HackMD

Module of the month: x/bank

🔥 Module of the Month: Bank from Cosmos SDK

Delving into the Bank module (x/bank) from the @cosmos_sdk: Not just any module, but the engine behind multi-asset coin transfers in the Cosmos Ecosystem. Handling both standard and special-case transfers. (1/7)

Who's using x/bank? Well, pretty much every chain in the Cosmos Ecosystem. The Cosmos Hub, Osmosis, Celestia, Axelar, Stride and many others use x/bank. Also modules like Staking, Distribution, and even IBC make use of this module to do asset transfer and minting. (2/7)

Why is x/bank the Module of the Month? For our first release we wanted to showcase one of the basics but at the same time most important module in the Ecosystem. It's a module often overlooked but always reliable and trusted by developers. (3/7)

How do users interact with x/bank? As any other module it has a set of queries and messages (txs). Some interesting queries are spendable-balances which lists balances that can actually be spent and denom-owners that lists addresses holding a specific token denom. (4/7)

It only has 3 messages, burn, send, multi-send. This last one is useful for when you want to send tokens to multiple addresses, check it out: https://asciinema.org/a/OKXAIZcZRZL4HdAgSJx3p0A5Q
But there are other methods available if you are a chain/module developer. (5/7)

How can I use x/bank when developing my own module/chain? If your module needs to query balances, supply or transfer/lock/burn/mint tokens then you'll want to use it. So when building a chain or a module, you don't even think about asset handling, just import x/bank! (6/7)

To learn more check out the Cosmos SDK docs: https://docs.cosmos.network/v0.50/build/modules/bank and this workshop in which we use some of the Bank module's methods: http://youtu.be/9kK9uzwEeOE
What module should we do next? Let us know 👇🏻! (7/7)