2

I am pretty new to Substrate and wonder if we can communicate with ink! smart contracts via established libraries such as web3.js or ethers.js? Is the underlying RPC-based communication the same?

1 Answer 1

3

No, the underlying RPC-based communication is not the same. There is an interesting discussion in the Polkadot Forum you might want to follow: WrappedEVM Eth RPC compatibility layer.

The alternative in substrate is polkadotjs, and more specifically for ink! smart contracts the library useink. Check the documentation of useink here: https://use.ink/frontend/overview

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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