How does IBC move tokens and messages between Cosmos chains? · Jumpstart Blockchain
How does IBC move tokens and messages between Cosmos chains?
Each chain runs a light client of the other. Relayers carry packets plus Merkle proofs, ICS-20 escrows native tokens and mints ibc/ vouchers, and every packet ends in an acknowledgement or a refunding timeout.
IBC (Inter-Blockchain Communication) moves data between chains by having each chain run a light client of the other. Chain A commits a packet to its own state, an off-chain relayer carries the packet and a Merkle proof of that commitment to chain B, and chain B's light client checks the proof against a header of A that it has verified, so no bridge committee is trusted. For tokens, the ICS-20 transfer app escrows the native asset on the source chain and mints a voucher with a denom like ibc/27394F... on the destination; sending it back burns the voucher and releases the original. Every packet ends in either an acknowledgement or a timeout, so a failed transfer is refunded rather than lost.
The layers of IBC
IBC was designed in the Cosmos ecosystem and is specified as a set of Interchain Standards (ICS). It splits into a transport layer, which moves authenticated bytes, and application modules, which give those bytes meaning.
Layer
Standard
What it does
Light client
ICS-02, ICS-07 (Tendermint)
Tracks the other chain's validated headers and state roots
Proofs
ICS-23
Verifies Merkle membership and non-membership proofs against those roots
Connection
ICS-03
Pairs a light client on each side after a four-step handshake
Channel
ICS-04
Ordered or unordered packet stream between two application ports
Applications
ICS-20, ICS-27 and others
Token transfers, interchain accounts, custom apps
Relayer
ICS-18
Untrusted off-chain process that submits packets and proofs
The client is the security core. For two CometBFT chains, the 07-tendermint client stores a trusted header and accepts a new one only if more than two-thirds of that header's validator set signed it and, when skipping ahead several blocks, enough of the validators it already trusts (one-third by default) signed it too. Each accepted header gives a new , the root of the chain's state, and every later proof is checked against that root. Because CometBFT blocks are final once committed, there are no reorgs to worry about, unlike the probabilistic finality discussed in .
A packet carries a sequence number, source and destination port and channel, an opaque data payload, and a timeout (a height, a timestamp or both).
Send. An application on chain A calls SendPacket. The IBC module stores a hash of the packet under a commitment path such as commitments/ports/transfer/channels/channel-141/sequences/42.
Relay. A relayer sees the event, updates chain B's client of A to a header at or after that height, and submits MsgRecvPacket with the packet and an ICS-23 proof that the commitment exists in A's state.
Receive. Chain B verifies the proof against its client of A, checks the timeout hasn't passed, records a receipt so the packet can't be processed twice, and hands the data to the application. The application returns an acknowledgement, success or error, which B writes to its own state.
Acknowledge. The relayer proves that acknowledgement back on A with MsgAcknowledgement. A's application reacts (for a failed transfer, it refunds) and deletes the commitment.
If the packet is never received before its timeout, the relayer instead proves on A that B has no receipt for that sequence (a non-membership proof), via MsgTimeout, and A rolls the operation back.
Relayers can't forge or alter packets, because every message is checked against a proof. What they control is liveness: if nobody relays, packets wait and then time out. Anyone can run a relayer, and the common implementations are Hermes (Rust) and the Go relayer (rly).
How ICS-20 token transfers work
ICS-20 is the transfer application on the transfer port. Its rule depends on whether the token is leaving its home chain or returning to it.
Leaving home (source). Sending native uatom from the Cosmos Hub to Osmosis locks the tokens in an escrow account for that channel. Osmosis receives the packet and mints a voucher whose denom is the hash of its full path:
path = transfer/channel-0/uatom # port/channel on the receiving side + base denom
denom = ibc/ + SHA256(path)
= ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2
Returning (sink). Sending that voucher back to the Hub burns it on Osmosis, and the Hub releases the same amount from escrow.
This is why the escrow balance on the source chain should always equal the voucher supply on the other side, and why IBC tokens are only as trustworthy as the chain of light clients they passed through. It also explains a common surprise: the same asset routed through different channels becomes different denoms. ATOM sent Hub → Osmosis and ATOM sent Hub → Chain X → Osmosis have different paths, so different ibc/... hashes, and they aren't fungible with each other. Wallets and DEXs agree on canonical channels to avoid this, and packet forward middleware lets a single transfer hop across chains while unwinding paths correctly.
A transfer from the command line looks like this (Hub channel-141 is the Hub's side of its main Osmosis channel):
gaiad tx ibc-transfer transfer transfer channel-141 osmo1recipientaddress... 1000000uatom \
--from mykey --chain-id cosmoshub-4 --node "$HUB_RPC" \
--fees 5000uatom --packet-timeout-timestamp 600000000000 # relative, 10 minutes in ns
Then on Osmosis:
osmosisd query bank balances osmo1recipientaddress... --node "$OSMO_RPC"# shows ibc/27394F... ; resolve it to its path with the transfer module's denom query# (`denom-trace` on older ibc-go releases, `denom` on newer ones)
osmosisd query ibc-transfer denom-trace 27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2
ICS-20 packets also carry a free-form memo. Middleware uses it to trigger actions on arrival, such as forwarding to another chain or calling a CosmWasm contract (Osmosis's IBC hooks), which is how "send and swap in one step" flows are built.
Beyond tokens: interchain accounts and custom apps
IBC moves arbitrary bytes, so tokens are just one application.
Interchain accounts (ICS-27) let a controller chain own an account on a host chain and send it transactions over IBC: staking, voting or swapping remotely without users switching chains.
Interchain queries let a chain read another chain's state with proofs.
Custom apps. Chains built with the Cosmos SDK, including order-book chains like Injective, and CosmWasm contracts can define their own packet formats and handlers. A contract implements callbacks for receive, acknowledgement and timeout, just like ICS-20 does.
What is IBC v2?
The classic protocol requires the connection and channel handshakes above, which assume both sides are Cosmos-style chains. IBC v2, shipped in ibc-go v10 and branded IBC Eureka for its Ethereum connection that went live in 2025, simplifies this: two chains register each other's light client IDs directly, without connection or channel handshakes, and packets carry one or more application payloads. That makes it practical to connect chains with very different consensus, using light clients implemented in Solidity and, for expensive verification such as CometBFT signatures on Ethereum, zero-knowledge proofs of the light client update.
ibc-go v10 runs both versions side by side, and existing classic channels keep working without migration. Exact support for Ethereum, L2s and Solana, and whether relaying is permissionless on a given route, has been changing during 2026, so check the current IBC docs for the route you need.
What can go wrong
IBC removes the multisig at the centre of most bridges, which is the weak point in many of the incidents covered in how bridge hacks happen. It doesn't remove every risk.
Client expiry. A light client is only trusted within its trusting period, set below the chain's unbonding period (the Cosmos Hub's is 21 days) so validators can still be slashed for signing conflicting headers. If no relayer updates the client in time, it expires and the channel stops. Recovering it requires a governance proposal (MsgRecoverClient in recent ibc-go). Relayers should update clients regularly even when there's no traffic.
Frozen clients. If someone submits evidence of misbehaviour (two valid, conflicting headers at one height), the client freezes and all its channels halt. That is the intended safety response, but it stops transfers until governance acts.
Ordered channel timeouts. On an ordered channel, one timed-out packet closes the whole channel. Older interchain account setups used ordered channels and lost them this way; newer ibc-go releases support unordered ICA channels, which you should prefer.
Stuck packets. If relayers are down or underfunded, packets sit until timeout. You can relay your own pending packets with Hermes:
hermes clear packets --chain cosmoshub-4 --port transfer --channel channel-141
Counterparty security. Your tokens are only as safe as the chain that issued or holds them. A chain whose validators collude can forge headers for its own light client. Also note that chains change: Sei, for example, moved to EVM-only and phased out IBC under SIP-3, so integrations depending on a chain's IBC channels need to watch its governance.
Proof assumptions. IBC proofs are Merkle proofs against an app hash. If Merkle proofs are new to you, that's the mechanism doing the real work here.
Checklist
IBC verifies, not trusts: each chain runs a light client of the other and checks Merkle proofs of packet commitments.
Relayers are permissionless and can only delay, never forge.
ICS-20 escrows native tokens and mints ibc/HASH vouchers; the hash is SHA256(port/channel/.../denom).
The same asset via different channels is a different denom; use canonical channels or packet forwarding.
Every packet ends in an acknowledgement or a timeout; set sensible timeouts and handle both in your app.
Keep light clients updated within their trusting period and monitor for expiry.
Prefer unordered channels unless you truly need ordering.
IBC v2 drops handshakes and reaches non-Cosmos chains; check current route support before relying on it.