7

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?

2

1 Answer 1

8

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, 2017 at 5:34
  • Yep, I tried to find the library too, but sadly there isn't a popular one for cpp. Apr 6, 2017 at 6:26
  • 3
    The library could be just based on libjson-rpc-cpp, as this is what cpp-ethereum is using.
    – NewTwoEth
    Jun 26, 2017 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, 2020 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.