web3.js
is a great library to communicate with client node. I have tried using socket programming from C application to first reach nodejs web app in order to make use of web3.js
services to reach a client node, it is not straight forward at all. I would like to simplify the process by looking for a equivalent lib like web3.js
to integrate in C, is there any? If not, what is the best practice for C app to communicate with a node?
Add a comment
|
2 Answers
There is a c++ client, not exactly c, but close enough. Aleth – Ethereum C++ client, tools and libraries
Ok, so you might not like this answer but ...for Ethereum, the best practice is to ditch C and use the closest thing to it which is "Go". With Go you have:
- lots of examples on how to do things
- lots of open source code that is verified
- you don't reinvent the wheel
-
I agree with you. I'm exploring the possibility of connecting IoT embedded devices (low end sensor node ...etc) directly to Ethereum. Also to publish sensor data to Eth, many sensors software are developed in native C– ConsyCommented Nov 1, 2018 at 8:03
-
as a hobby project, you can...but not on low end. minimum I think is Raspberry pi 3,...which is not low end at all.– OWADVLCommented Nov 1, 2018 at 8:06