I'm working on an open-source project.
I'm hesitant to include web3.js with all the code.
I just want to read a single value from the Ethereum blockchain.
That is why my requirement is to avoid 100KB libraries.
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
You could just use a HTTP POST request to a geth or parity node.
Here is the documentation with examples using
curl, just use a HTTP request and POST the data.
You'll need to make sure your local node allows connections. I use this something like this:
geth --rpcapi eth,net,web3 --rpccorsdomain * --rpc --rpcaddr 0.0.0.0