0

I am a newbie and started learning dapp on ethereum. Up till now, I wrote smart contracts; created frontend with html, css and js; deployed smart dapp on either private network(geth, ganache) or rinkeby testnet. I connected directly to blockchain via (frontend)js which is loaded by html pages.

Now,

I want to write a dapp that is deployed on two blockchain one private and one public i.e., certain data will be stored on private and rest will be stored on a public chain. The dapp should connect to these blockchain from backend Not from frontend. I have looked on the internet and found some sample of connecting a dapp from backend(nodejs) but I cannot find anything related with multi blockchain dapp. As far as i know, we configure our smart contract deployment configuration in "truffle-config.js" file. Now i need one group of contracts to be deployed on private chain and another group of contracts to be deployed on a public chain. Note that both groups are part of same dapp. What I want to know is:

How should i design this(please explain folder structure and truffle-config.js for multi deployment) ?

Will there be two web3 objects in backend(nodejs) ?

Is there any open source dapp that uses multiple blockchain?

1

There are some projects that are researching in the area

But I don't know a general solution ready for production.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.