Geth allows me to define & load my own custom JavaScript functions with --preload
flag or require()
on Geth console.
But is there way to access my functions via RPC interface?
Like :
curl -H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"mycustom_function()","params":[],"id":123}'
I've seen i can open access to more management APIs with --rpcapi eth,web3,admin,eth,miner
but it doesnt work for my custom functions.