What's the role of the StateSender.sol contract?

Created by Sourajyoti Gupta, Modified on Fri, 28 Jul, 2023 at 7:31 PM by Sourajyoti Gupta

StateSender contract is one of the genesis contracts which was deployed on the Ethereum network by the polygon team, this contract is responsible for keeping track of the mapping of registered root and child addresses. It has a method called stateSync() which is provoked internally every time we want to communicate between chains and it also emits an event called StateSynced which the Polygon validators on the Heimdal layer actively listen to and then pass it on to the Bor layer through an API call.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article