Skip to content

How to Trace a Timed-Out Cosmos IBC Transfer Using Packet IDs

Trace a timed-out Cosmos IBC transfer in 5 steps, verify its packet status, and confirm whether a source-chain refund completed.

If a Cosmos IBC transfer is missing after its timeout, use its packet ID to follow the transfer across the source and destination chains, then check whether a timeout transaction returned the funds. This guide is for users who can access a chain explorer or transaction details in their wallet. The key distinction: a timeout deadline passing does not itself prove a refund has been processed.

Prerequisites

  • Tools: The source and destination chain explorers, the original transfer transaction hash, and access to the sending wallet address. An IBC-aware wallet or an explorer that displays IBC events can help.
  • Estimated time: About 10–20 minutes if both explorers index the relevant transactions; this can take longer if indexing or relaying is delayed.
  • Difficulty: Intermediate.

IBC packet IDs use a source port, source channel, and packet sequence. A common transfer port is transfer, but check the transaction rather than assuming. In this guide, “timeout” means the packet’s configured height or timestamp deadline has elapsed. It does not necessarily mean the source-chain timeout transaction has already succeeded.

Steps

Step 1: Find the original transfer transaction

Open the source chain’s explorer and search for the transaction hash shown in your wallet. Confirm that the transaction succeeded on the source chain and locate its message or event details. A successful send transaction only establishes that the source chain accepted the transfer; it does not confirm that the destination chain credited the recipient.

Look for a send_packet event or equivalent IBC packet details. IBC-Go emits the packet sequence and source port and channel as send-packet event attributes. Explorer labels and layouts vary by chain, so expand the transaction’s events or raw log if the explorer does not display a dedicated IBC panel. The IBC packet definition identifies a packet by its source port, source channel, and sequence.

Step 2: Record the packet ID and packet fields

Write down the source port, source channel, and packet sequence exactly as shown. For example, a hypothetical packet ID could be transfer/channel-12/847. Treat those sample values as illustrative only; use the values from your transaction.

Also record the destination port and channel, timeout height and/or timeout timestamp, token denomination, amount, and receiver address when available. A packet can have a height deadline, a timestamp deadline, or both. The protocol defines these as the conditions after which the packet is no longer eligible for receiving, subject to the chain’s proof and state checks.

Illustrative workspace for checking transaction events; the screen does not show a real chain transaction.

Step 3: Check the destination chain for receipt or acknowledgement

Use the destination chain explorer to search the destination channel and packet sequence, or follow the linked IBC transfer view if the explorer provides one. Look for a receive-packet event and then an acknowledgement. A successful acknowledgement generally means the destination application processed the transfer; an error acknowledgement indicates the destination application rejected it and may lead to a source-side refund when that acknowledgement is relayed and processed.

If you cannot find a destination transaction, do not conclude that the transfer timed out based only on a wallet’s “pending” label. Explorer indexing may lag, or a relayer may not yet have submitted the packet. Compare the packet’s deadline with destination-chain height or time and check for packet activity around that point.

Step 4: Verify timeout eligibility and source-chain commitment status

Return to the source chain and inspect the packet’s status, if the explorer exposes it. A packet commitment is source-chain state associated with an outstanding packet. If it remains present after the deadline, the timeout may still need to be relayed and submitted. The timeout procedure requires proof that the packet was not received by the destination before its deadline, verified against the relevant chain state; simply waiting until a clock time passes is not the refund transaction.

For an unfamiliar command-line workflow, avoid submitting raw messages based on guessed channel identifiers or copied instructions for another chain. Chain CLI commands and explorer features vary. Use the chain’s official documentation or ask the wallet or relayer support team to interpret the exact packet ID.

Step 5: Confirm the timeout transaction and refund

Search the source chain for a later IBC timeout transaction referencing the same source port, source channel, and sequence. Confirm that this transaction succeeded, then inspect the sender’s balance or transaction history for the returned asset. In the standard ibc-go transfer module, the timeout callback refunds the transfer: source-chain assets are unescrowed, while voucher tokens that were burned on send are minted back to the sender.

For example, if the hypothetical packet transfer/channel-12/847 has an elapsed deadline and its commitment is still outstanding, that is evidence to investigate a timeout relay, not proof that a refund is already complete. After a successful source-chain timeout transaction, check the sending address and denomination again. Network fees paid for transactions are separate from the transferred principal and generally are not part of the token refund.

Troubleshooting

  • The source transaction hash shows no packet sequence: Expand raw events or logs and search for send_packet, packet_sequence, packet_src_port, and packet_src_channel. If the explorer omits event attributes, try the chain’s other official explorer or request the transaction event data from wallet support.
  • The deadline passed but there is no refund: Check whether a successful timeout transaction exists on the source chain. A passed deadline alone does not execute the refund. If a commitment is still outstanding, ask the wallet or relayer provider whether they support relaying the timeout for this route.
  • The destination shows receipt but the source still looks pending: Look for the acknowledgement and whether it was relayed back to the source. A received packet and a source-side acknowledgement transaction are different events. Do not initiate another transfer until you have reconciled the original packet’s state.

FAQ

Does an IBC packet ID include the destination channel?

The standard source-side packet identifier consists of the source port, source channel, and sequence. Destination-side tracking may identify it with destination port and channel fields, so record both sides when available.

Does a timed-out IBC transfer refund automatically?

The timeout condition makes the packet eligible for timeout handling, but a proof-backed timeout must be processed on the source chain for the transfer module’s refund logic to run. Check for that source-chain transaction.

Can I resend the transfer while the packet is unresolved?

You can submit a new transaction, but doing so may create a separate transfer while the first packet remains unresolved. First determine whether the original packet was received, acknowledged, or timed out and refunded. Consult your wallet’s official support if the explorer evidence is unclear.

Sources

Leave a Comment

Ecosystem