How to Poll Bridge Status and Watch Events to Confirm Delivery
Use both. A finalized destination-chain event proves delivery; a status API reports progress, failures and refunds that a destination watcher cannot see.
The Crypto Front Page Desk6 min read

Use both. A finalized destination-chain event proves delivery; a status API reports progress, failures and refunds that a destination watcher cannot see.
A destination log is on-chain evidence your app can verify without relying on the gateway’s account of success. The API answers a different question: what happened when delivery did not produce a destination log?
A cross-chain asset transfer can use pooled liquidity or a token mapping. For cBridge transfers, that route determines which destination contract and event your app watches.
One Transfer ID Connects Both Confirmation Paths
The transfer ID is the key your app needs before it starts either confirmation path. Have source and destination RPC endpoints and the relevant bridge contract addresses ready. Confirm that your backend can decode the source receipt and query destination logs; a source transaction hash alone is not the ID used to match the two chains.
The source Send event carries transferId, receiver, token, amount, dstChainId, nonce and maxSlippage. Store those values with the source transaction hash. They let you reject an unrelated destination log even when a subscription delivers it through the expected contract.
Illustrative case: a transfer row initially shows “source confirmed” with its receiver and destination chain. After confirmation, the same row keeps those details and its transfer ID; only its progress and settlement state change. That stable record gives an event watcher and an API poller one transfer to update.
A Hybrid State Machine Handles Delivery and Refunds
A hybrid state machine settles delivery from finalized chain evidence and handles failures through status polling. Run these steps from a confirmed source transaction:
- Extract and persist the source ID. Decode the confirmed receipt’s Send log and save transferId with the expected route, receiver and token. Start the record as in flight. If the receipt has no matching Send log, investigate the source transaction before creating a delivery watcher; there is no confirmed transfer ID to follow.
- Watch the destination route. Subscribe to logs with eth_subscribe on the destination contract. Pool routes emit Relay; match its srcTransferId to the source transferId, rather than assuming the destination’s transferId field is the same key. Pegged routes emit Mint on PeggedTokenBridge; match refId. Verify the emitting address, chain and receiver as well as the ID. On reconnect, backfill missed blocks with a log query, because a live subscription depends on RPC uptime.
- Hold observed events until delivery is final. Record a matching log as observed, then wait for the destination chain’s configured finality rule. The removed flag means a subscribed log was retracted after a reorganization; remove that observation and resume watching. A Relay accompanied by DelayedTransferAdded is another intermediate state: the transfer is held under a delay, so the receiver has not received the funds. Wait for the corresponding delay execution and its finality before showing delivered.
- Poll the status API while watching. Send transferId to getTransferStatus with backoff, a capped retry interval and handling for API errors or rate limits. The cBridge gateway can report waiting for State Guardian Network confirmation, waiting for fund release, TRANSFER_COMPLETED, TRANSFER_FAILED and refund states. Treat TRANSFER_COMPLETED as a prompt to find and finalize the destination evidence. Treat TRANSFER_TO_BE_REFUNDED as “refund needed,” then follow the subsequent preparation and submission states. Show “refunded” only when the API reports TRANSFER_REFUNDED.
- Check which settlement path completed. Show “delivered” only after the matching delivery event is finalized, or “refunded” only after the reported refund completes. A failed transfer may emit nothing on the destination chain. An event-only watcher can merely time out; it cannot tell a pending transfer from one that needs a refund. Keep TRANSFER_FAILED distinct from refund-needed and refunded states, and flag conflicting terminal evidence for investigation.
The result is one transfer record with a confirmed success path and a handled failure path. Next, run a transfer that succeeds and one that enters a refund flow in a test environment; that shows whether your UI preserves the right state through reconnects, delays and settlement.
Related Questions
How to Get the cBridge Transfer ID From a Send Transaction?
Decode the confirmed source transaction receipt with the source Bridge contract’s ABI, find its Send log and read transferId. Also save the log’s receiver, token, amount and dstChainId so the destination match can be checked against the original request. If the transaction reverted or has no Send log, do not infer an ID from the transaction hash.
What cBridge Refund Statuses Mean?
TRANSFER_TO_BE_REFUNDED means delivery failed and a refund flow is needed. TRANSFER_REQUESTING_REFUND means the gateway is preparing it; TRANSFER_REFUND_TO_BE_CONFIRMED means the user must submit the refund transaction. TRANSFER_CONFIRMING_YOUR_REFUND means that transaction is being monitored, and TRANSFER_REFUNDED means the refund is complete. These states should produce different UI actions, rather than one generic “failed” label.
How Many Confirmations Before Trusting a Destination Event?
Use the destination chain’s finality policy, not a universal confirmation count. Where the RPC exposes a finalized block, compare the event’s block with it. Otherwise, configure a confirmation threshold for that chain and keep the log provisional until the threshold is met. A removed log must return the transfer to its prior in-flight or delayed state.
Refund Actions and Message Delivery Need Separate Checks
How Should an App Trigger the Refund Withdrawal for a TRANSFER_TO_BE_REFUNDED Status?
Keep polling until the API supplies the refund data and reports TRANSFER_REFUND_TO_BE_CONFIRMED. Then present the appropriate source-chain transaction for the route: a pool withdrawal uses the Bridge contract’s withdraw call with the returned withdrawal message, signatures, signers and powers. Pegged routes use their corresponding refund contract action. Ask the user to submit that transaction, track its progress, and reserve “refunded” for TRANSFER_REFUNDED.
How Do Confirmation Methods Differ for MessageBus Messages Compared With Token Transfers?
MessageBus confirmation follows a message ID and the destination application’s execution result, rather than a token transfer ID and a Relay or Mint delivery log. A destination transaction may show that a message reached MessageBus while the application still needs to execute or retry its handler. Define success from the application outcome the user requested, and track message failure or retry states separately from token refund states.