1

Is there documentation on how to interact with an Ink smart contract via ReactJS and polkadot.js or capi? Using the metadata that is generated from the smart contract.

thanks

3 Answers 3

6

There is this cool tutorial that shows how to interact using PolkadotJS apps and React!

1
  • Pretty in depth tutorial. that is awesome. One question. Does the metadata.json provide types for Typescript for the objects that the smart contract uses in its messages? thanks. Commented Aug 22, 2022 at 20:25
1

You can use our new project https://github.com/Supercolony-net/typechain-polkadot, it is still in development, but you can also use the beta versions from https://www.npmjs.com/package/typechain

1
1

In case you haven't found it already, the polkadot.js docs have a section on contracts where you can learn how to read values and execute transactions

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.