Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State transfer from Polygon to Ethereum #32

Closed
babyplutokurt opened this issue Feb 10, 2022 · 1 comment
Closed

State transfer from Polygon to Ethereum #32

babyplutokurt opened this issue Feb 10, 2022 · 1 comment

Comments

@babyplutokurt
Copy link

babyplutokurt commented Feb 10, 2022

Hello, I am wondering how to transfer data from child to Root, how to generate the proof as an input to receiveMessage() to receive the messages?
In the Doc of Polygon, it shows:
// npm i @maticnetwork/maticjs
// for goerli - mumbai testnet
const getPOSClient = (network = 'testnet', version = 'mumbai') => {
const posClient = new POSClient()
return posClient.init({
log: true,
network: network,
version: version,
child: {
"matic-provider"
},
parent: {
"matic-provider"
}
}
});
}
posClient.exitUtil.buildPayloadForExit("burntxhash","event signature")

I am wondering how to set "matic-provider", "matic-provider" and burntxhash, event signature

@DhairyaSethi
Copy link
Contributor

You can find an example implementation of initialising maticjs here
Documentation for reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants