React interact with ink!

Hi @zubayr1,

Interacting with ink! smart contracts using Polkadot.js might be challenging, especially if you’re new to ink!.

From what you describe, it’s a bit hard to see & debug what went wrong, can you host the script somewhere e.g on https://stackblitz.com/, so it’s easier for us to go there and help you check the issue.

Alternatively, I suggest you trying out Dedot, a new JavaScript Client for Polkadot & Substrate which supports fully-typed APIs to interact with ink! contracts. There is an example (e2e test) to deploy & interact with a flipper contract in the source code, so you could go there and check it out.

If you need more help, you can reach out to me directly on Telegram (@realsinzii) or ask your question on Telegram group of Dedot, I’m happy to help you out with the issue.

2 Likes