You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importantly, that all params for Ethereum function should be encoded using Solidity ABI.
For easier communication, we have written a wrapper around JSON-RPC calls in C++. It sends messages using Curl and also blocks program execution for eth_sendTransaction messages until they are approved or denied by miners. RPC class supports functions to get/send data in public functions from MemoryManager. Additionally, it has template function form_json, which will encode most of the calls to Ethereum blockchain. More specifically, it can encode/decode functions calls with next parameters:
uint
string
string[]
bytes1
bytes1[]
stat struct (tuple(uint,uint,uint,uint,uint,uint,uint,uint)