Introducing a new way to review your PRs.

Read the announcement

lfdt-ibc / ibc

The Inter-Blockchain Communication Protocol (IBC) is a neutral, open standard for secure cross-ledger interoperability

View on GitHub

18 documents · Updated Nov 23, 2026

docs / ibc-application-standards

IBC application standards

IBC application standards define the useful work that happens after core IBC authenticates and delivers a packet. They let separate ledgers move assets, control accounts, share security, reward relayers, query state, and exchange value while keeping application rules separate from the core protocol semantics.

Application-layer model

An IBC application is a module that uses the core IBC packet path to communicate with a counterpart module on another ledger. Core IBC provides transport, authentication, and ordering. The application defines the packet meaning, local state changes, success or error acknowledgement, and recovery after a timeout.

The standards in this page fall into three groups:

  • Asset and value movement: fungible token transfer, NFT transfer, and atomic swaps.
  • Cross-chain control and security: interchain accounts and cross-chain validation.
  • Shared application services: middleware, fee payment, and cross-chain queries.

These applications normally depend on the client, handler, routing, commitment, and host rules described by the IBC protocol specifications. Relayers carry the packets and proofs between ledgers; their role is separate from the application rules and is described in client and relayer standards. The IBC v2 specifications apply the same application-layer idea to a newer packet model.

Asset transfer standards

Fungible token transfer

The fungible token transfer standard moves a divisible asset between ledgers without creating an uncontrolled second supply. A source ledger escrows the local asset and the destination ledger issues a voucher. A return trip burns the voucher and releases the escrowed asset, so the asset keeps a trace of its path and remains fungible across connected ledgers.

The transfer family also defines an extended packet form for sending multiple tokens and forwarding them through more than one channel. The extended form carries structured denomination traces and a forwarding path. A middle ledger must reverse its local changes if a later hop fails, so the original transfer still has one success or failure result.

The transfer also defines a failure path. A successful receipt produces a success acknowledgement. An invalid transfer can produce an error acknowledgement, while a timeout restores the sender-side value. This lets the sending application recover without treating every destination error as a state-machine failure.

The main product guarantees are:

  • supply and ownership remain controlled by the source asset system;
  • transfers do not require a trusted list of ledgers, channels, or denominations;
  • a faulty destination cannot inflate assets that originated elsewhere;
  • multi-hop transfers retain enough denomination trace to know when to escrow, mint, burn, or release;
  • forwarded transfers can complete across several hops or unwind the intermediate changes when a later hop fails.

References: spec/…/README.md• L15-33 spec/…/README.md• L51-85 spec/…/README.md• L232-241 spec/…/README.md• L37-86 spec/…/README.md• L118-193 spec/…/README.md• L426-575 spec/…/README.md• L622-650

Non-fungible token transfer

The non-fungible token (NFT) transfer standard applies the same source-and-voucher model to unique tokens. It carries the token class, token identifiers, ownership addresses, and optional metadata so that a token can be used on another ledger without creating a second live instance.

An NFT class identifier records the transfer path. The receiving side creates a voucher when the token moves away from its source. When the token returns, the voucher is destroyed and the original token is released. This preserves uniqueness while allowing NFT marketplaces and other applications to use the token on a different ledger.

References: spec/…/README.md• L13-32 spec/…/README.md• L36-64 spec/…/README.md• L92-126 spec/…/README.md• L303-308

Cross-chain control and security

Interchain accounts

Interchain accounts let an account on a controller chain operate an account on a host chain through IBC packets. The host account has the normal abilities allowed by its ledger, but the controller chain supplies the instructions and remains the owner that authorizes them.

Registration creates a relationship between one controller owner and one host account. The channel handshake negotiates how transactions are encoded and returns the host account address to the controller. The host then authenticates each instruction against the account associated with the channel before execution.

The control flow is therefore a registered, ordered command stream rather than a token transfer:

sequenceDiagram
    participant Owner as Controller owner
    participant C as Controller chain
    participant R as Relayer
    participant H as Host chain
    Owner->>C: Register account
    C->>R: Channel handshake event
    R->>H: Complete registration
    H-->>C: Negotiated account identity
    Owner->>C: Submit transaction instructions
    C->>R: Send ordered IBC packet
    R->>H: Relay packet
    H->>H: Authenticate and execute as host account
    H-->>C: Return result acknowledgement

A replacement channel can restore control if the active channel closes. The replacement must retain the same owner, counterparty, connection, ordering, and transaction parameters. This prevents a new channel from changing which host account the controller can control.

References: spec/…/README.md• L14-39 spec/…/README.md• L43-47 spec/…/README.md• L170-213 spec/…/README.md• L290-316 spec/…/README.md• L553-569

Cross-chain validation

Cross-chain validation (CCV) is an IBC application module that shares proof-of-stake security between a provider chain and one or more consumer chains. The provider chain supplies validator updates. Each consumer chain applies those updates to its validator set and can send evidence of consumer misbehavior back to the provider for slashing.

CCV uses one unique ordered channel for each provider-consumer pair. The channel carries validator-set changes, maturity notices for unbonding operations, evidence of consumer misbehavior, and rewards. A CCV module also works with the chain's consensus, staking, slashing, governance, and token-transfer services so that cross-chain state changes affect local security and reward rules.

The provider and consumer coordinate validator changes as a lifecycle. A provider change becomes a validator-set-change (VSC) update for consumers. A consumer reports when that update reaches maturity. The provider can complete a related unbonding operation only after the update matures on every required consumer chain. Consumer evidence uses the provider-consumer height mapping so the provider slashes the voting power that was active when the infraction occurred.

The high-level relationship is:

flowchart LR
    P[Provider chain] -->|validator-set changes| C1[Consumer chain]
    P -->|validator-set changes| C2[Consumer chain]
    C1 -->|maturity notices and slash requests| P
    C2 -->|maturity notices and slash requests| P
    C1 -->|security rewards| P
    C2 -->|security rewards| P

Safety depends on correct chain state and valid evidence. Liveness also needs live chains and at least one relayer that delivers channel handshakes and packets before their timeouts. The standard therefore treats validator replication, slashing, unbonding safety, and reward distribution as system properties rather than as isolated packet actions.

References: spec/…/overview_and_basic_concepts.md• L41-49 spec/…/overview_and_basic_concepts.md• L85-105 spec/…/overview_and_basic_concepts.md• L133-140 spec/…/data_structures.md• L33-39 spec/…/data_structures.md• L146-196 spec/…/technical_specification.md• L20-60 spec/…/technical_specification.md• L70-115

Shared application services

Middleware

IBC middleware adds shared behavior around a base application without changing core IBC or the base application's own rules. A middleware layer can inspect or transform outgoing packets, incoming packets, acknowledgements, and timeout paths before passing them to the next layer.

Middleware layers form an application stack. Each layer keeps its own logic while delegating the underlying application work, so several extensions can be combined around one base application. When both sides need compatible behavior, the channel version carries the middleware version together with the nested application version. A middleware that runs on only one side does not need to change the channel version.

This separation matters because common features such as fees should not be copied into every application. It also creates a trust boundary: middleware can alter application data, so an application must not use an untrusted stack. Each complete stack uses its own port so that separate combinations of the same base application remain distinct.

References: spec/…/README.md• L14-34 spec/…/README.md• L36-65 spec/…/README.md• L98-160 spec/…/README.md• L260-344

General fee payment

The fee payment standard provides an optional incentive system for relayers that deliver packets, acknowledgements, or timeouts. It stores fee information with the original packet on the source chain, then pays the relayer that performs each successful stage and refunds unused funds.

The protocol distinguishes three roles: the forward relayer submits receipt, the reverse relayer submits acknowledgement, and the timeout relayer submits timeout. A relayer registers the payee address on the counterparty chain before delivery, which lets the acknowledgement identify a valid source-chain address rather than trusting a forged address.

Fee payment is middleware. It wraps the application acknowledgement and channel version, then passes the underlying application version through its negotiation. This allows applications to opt in independently and lets the fee module support different fee assets and local payout rules. If the forward relayer address is missing or invalid, the packet flow continues and the forward fee is refunded rather than blocking acknowledgement.

References: spec/…/README.md• L14-18 spec/…/README.md• L31-42 spec/…/README.md• L64-93 spec/…/README.md• L110-124 spec/…/README.md• L138-146 spec/…/README.md• L222-244 spec/…/README.md• L401-486

Cross-chain queries

Cross-chain queries let an application on one ledger read a value from another ledger without opening a normal application channel or making the queried ledger process a query transaction. The querying chain creates a request for a specific path and height. A relayer reads that state through the queried ledger's public interface and submits the value with a proof.

The querying chain verifies the proof with its local client. A valid value becomes a successful result. A proven absence becomes a failed result. If the local deadline passes first, the request becomes a timeout. The caller can retrieve the result later, so query execution does not block the original application action. A bounty is an optional payment that rewards the relayer for fetching and proving the result.

sequenceDiagram
    participant A as Querying chain
    participant R as Relayer
    participant B as Queried chain
    A->>A: Store path, height, client, and timeout
    A-->>R: Emit query request
    R->>B: Read requested path at requested height
    B-->>R: Return value or absence
    R->>A: Submit result and proof
    A->>A: Verify proof with local client
    A-->>A: Store success, failure, or timeout result

The requested height is part of the trust model. It stops a relayer from choosing a different historical view that changes the answer. The timeout must allow enough time for the relayer to read the other ledger and for the querying chain to commit the response.

References: spec/…/README.md• L13-29 spec/…/README.md• L66-82 spec/…/README.md• L84-94 spec/…/README.md• L181-192 spec/…/README.md• L351-388

Atomic swap

The atomic swap standard exchanges tokens held on two different ledgers without moving those tokens through a normal token-transfer bridge. A maker escrows one asset and publishes an order. A taker escrows the requested counter-asset on the other ledger. Only after both sides confirm does each escrow release the asset to its recipient.

Orders provide a small cross-chain order book. They can expire or be cancelled, and a timeout or failed acknowledgement refunds the relevant escrow. The all-or-nothing rule protects each party from receiving one side of an exchange without providing the promised other side.

sequenceDiagram
    participant M as Maker chain
    participant R as Relayer
    participant T as Taker chain
    M->>M: Escrow offered token and create order
    M->>R: Send order packet
    R->>T: Relay order
    T->>T: Taker accepts and escrows counter-token
    T->>R: Send acceptance packet
    R->>M: Relay acceptance
    M->>M: Release maker asset to taker
    M-->>R: Acknowledge success
    R-->>T: Relay acknowledgement
    T->>T: Release taker asset to maker

References: spec/…/README.md• L15-47 spec/…/README.md• L51-59 spec/…/README.md• L205-223

Change checklist

When these files or sections are changed, remember to consider these:

  • When a token or NFT packet format changes, check denomination or class-path tracing, acknowledgement handling, and timeout refund rules together.
  • When token forwarding changes, keep hop order, intermediate escrow state, downstream acknowledgement propagation, and rollback of intermediate changes consistent.
  • When interchain account metadata changes, keep controller and host negotiation aligned with active-channel replacement and host-side signer checks.
  • When middleware changes its version envelope, update every nested application and middleware that must parse or pass the application version.
  • When fee acknowledgement fields change, preserve the link between the destination relayer, its registered counterparty payee, and source-chain payout.
  • When query proof or timeout rules change, keep the requested height, local client verification, result state, and bounty behavior consistent.
  • When cross-chain validation changes, review the ordered provider-consumer channel, validator-set updates, unbonding maturity, evidence delivery, reward flow, and local staking or slashing interfaces as one security contract.
  • When atomic swap order states change, preserve the shared order identity and the all-or-nothing escrow transition across both ledgers.

Important failure modes

TriggerConsequenceGuard
A token or NFT path is parsed as a local asset pathThe destination can mint, burn, or release the wrong asset representationPreserve the transfer trace rules and restrict native identifiers so they cannot imitate an IBC trace
A forwarded token packet fails after an intermediate ledger has received the tokensThe middle ledger can retain state or funds after the original transfer failsPropagate the downstream error or timeout and reverse the intermediate escrow or voucher change
An interchain account packet has an unknown encoding or signerThe host cannot safely execute the requested transactionNegotiate one supported encoding and authenticate every signer against the channel's registered account
A middleware stack changes data or version metadata without the matching layerThe base application may reject or misread the packetKeep nested version values intact and use only trusted middleware stacks
A relayer has no registered counterparty payee addressA successful receive cannot safely pay the forward relayerRegister the mapping before relay and refund the receive fee when no valid source address exists
A query result uses the wrong height or proofAn application may accept state that was not requestedBind the proof to the stored query height and verify membership or non-membership with the local client
A consumer validator update or maturity notice is delayed past the required safety windowProvider-side unbonding or consumer security can become unsafe or fail to progressUse the ordered CCV channel and wait for maturity notices from all consumers before completing unbonding
One side of an atomic swap succeeds while the other side failsA party can lose escrowed value without receiving the exchangeMake acknowledgement, timeout, and cancellation paths refund or complete the whole order atomically

Key files

FileWhy to read it
spec/…/README.mdDefines the core fungible asset transfer model and its source/sink behavior
spec/…/README.mdDescribes the extended token packet model with multiple tokens and path forwarding
spec/…/README.mdDefines cross-ledger NFT identity, metadata, ownership, and uniqueness
spec/…/README.mdExplains account registration, command execution, authentication, and channel recovery
spec/…/overview_and_basic_concepts.mdGives the provider-consumer security model and the main validation lifecycle
spec/…/data_structures.mdDefines provider and consumer state, CCV packets, validator updates, and reward-channel metadata
spec/…/technical_specification.mdShows how CCV connects to IBC, consensus, staking, slashing, governance, and token transfer
spec/…/system_model_and_properties.mdStates the safety, liveness, validator, slashing, and reward guarantees
spec/…/README.mdExplains relayer fee roles, escrow, acknowledgement data, and payout flow
spec/…/README.mdDefines application stacks, extension boundaries, version negotiation, and packet wrapping
spec/…/README.mdDefines query requests, proof-backed responses, results, and timeouts
spec/…/README.mdDescribes the cross-ledger order, escrow, completion, cancellation, and refund lifecycle
spec/…/README.mdPlaces application packets within the IBC v2 client, core, and application model