5

Vast majority of resource about contracts deal with using them in web applications with JavaScript web3.

But how you interact with contracts (create, call them, make transactions) in a C++ application?

1
7

Regardless of the language, you can always resort to the JSONRPC to interact with the network.

4
  • Oh ok. Thanks. I tought that there are naybe some dedicated libraries for it, as they are for js.
    – NewTwoEth
    Apr 6 '17 at 5:34
  • Yep, I tried to find the library too, but sadly there isn't a popular one for cpp. Apr 6 '17 at 6:26
  • 2
    The library could be just based on libjson-rpc-cpp, as this is what cpp-ethereum is using.
    – NewTwoEth
    Jun 26 '17 at 23:43
  • @NewTwoEth does not support ipc connection unlike full fledged web3. This expose to the problem of not knowing to which pubsub subscription the response you re receiving corresponds to (when you have several differrent ones). Dec 8 '20 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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