How to Track a Polygon PoS Bridge Deposit in Your App
Your app should mark an Ethereum-to-Polygon PoS deposit complete only after the destination token state reflects it; an Ethereum receipt confirms the source transaction, not the later cross-chain processing. For a user-facing way to make the transfer, the Polygon Bridge transfer handles the bridging task, while your integration can track its on-chain progress.
Model the deposit as a source transaction and a destination update
A PoS deposit starts on Ethereum: the caller approves the token if needed, then calls RootChainManager.depositFor with the recipient, root token address, and encoded deposit data. The registered token predicate applies the token-specific lock or burn logic, and the manager sends a deposit message through Polygon’s state-sync system.
That message is processed on Polygon, where the ChildChainManager invokes the mapped child token’s deposit logic. For a standard mapped ERC-20, that usually mints the corresponding amount to the recipient. If you use Polygon Bridge as the transfer route, remember that its route selection does not change this source-then-destination lifecycle.
Track the deposit through five explicit states
Use a state machine keyed by the Ethereum transaction hash, and keep the source and destination chain IDs alongside it. The practical steps below prevent a confirmed Ethereum transaction from being mistaken for a completed deposit.
Record the intended transfer. Store the Ethereum chain ID, sender, recipient, root token, mapped child token, and amount in base units before submitting. For example, 25 USDC with six decimals is 25,000,000 units; never assume every ERC-20 uses six decimals.
Wait for the Ethereum receipt. Query the transaction by hash and require a successful receipt before moving to source confirmed. A reverted receipt means the deposit did not complete; inspect the revert and let the user retry only after confirming no successful transaction already exists.
Verify the bridge-side source effects. Check logs from the expected RootChainManager and token predicate addresses in that receipt. For a mapped ERC-20, confirm the expected lock or burn event and the state-sync message; this catches a successful but unrelated transaction or a mismatched token mapping.
Wait for the destination effect. Follow the corresponding state-sync deposit to Polygon and check the mapped child token’s deposit event or the recipient’s balance change. Mark the transfer complete only when the recipient and amount match your recorded intent.
Keep pending transfers recoverable. If the Ethereum receipt exists but no destination effect appears yet, retain the transaction as pending on Polygon and keep polling or allow a manual refresh. Don’t resubmit just because an RPC request timed out: look up the original hash first to avoid duplicate user actions.
Set expectations without guessing a completion time
Ethereum confirmation time depends on network conditions and your confirmation policy; state-sync delivery adds a separate wait whose duration can vary. Avoid promising a fixed number of seconds. Show users which chain has confirmed the transfer, and alert your operations team when a pending deposit exceeds a measured service threshold.
In practice, I treat the root receipt as proof that the source leg succeeded and the child-chain balance or deposit event as proof that the user received tokens. That distinction gives your app a precise status, a useful recovery path, and a reliable way to explain what remains.