Simulation · HTLC lifecycle
- Polygon escrow
- NEAR HTLC
- Secret / hashlock
Polygon ⇄ NEAR · atomic swaps
Swap WETH on Polygon for NEAR without a bridge holding your funds. Both chains lock to the same hash, so either everything settles or everything refunds.
After the reveal · settled
Both claims land, or the timelocks expire and the funds go back. No bridge custody, no counterparty risk.
Secret revealed in time
Both sides claim.
The maker claims NEAR before the +30 min withdrawal deadline, and the same secret lets the resolver claim WETH on Polygon.
Secret never revealed
Everything refunds.
Nothing can be claimed without the secret. After the +1.5 h cancellation time, the resolver refunds the expired HTLC.
By the numbers
2
chains, Polygon and NEAR
1
secret unlocks both sides
6
contracts & accounts you can inspect
0
custodians holding your funds
Go deeper