my attempt is to call a view function to reatrieve some data from a contract on the Blockchain using a C program. I do have the interface of the contract.
I think i need to performe two things in order to accomplish this task:
- First of all the program needs to connect to a node running the EVM. Usually easy using Metamask and web3.js. I don't thinks it's so easy even in this case. Is it possibile to connect to a node without using Metamask? What would you do to do this? What do you think will be the biggest problem of this task?
- Second i need to create a raw transaction to send to the node and by raw i mean real raw. Anyway once i've a connection this shouldn't be impossible. Since i just need to call one function i was thinking of making one call using remix or truffle then inspect the data sent and try to replicate it the connection opened from the C program. Do you think it's possible to do such a thing? What part does it seems impossibile to you?
Of course i also ask you if you know of any project or any people who have done something like this, even in other languages, i'll really appreciate if you post it.