Before Parity I used Geth, and made requests like:
echo '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' | nc -NU geth.ipc
and It worked! In Parity v2.7.2 and Ubuntu 18.06 i tried to do it in the same way:
echo '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' | nc -NU jsonrpc.ipc
But has no stdout. I tried several methods, but no one was success.
in config.toml
I has this:
[ipc]
disable = false
path = "$HOME/.local/share/io.parity.ethereum/jsonrpc.ipc"
apis = ["web3", "eth", "pubsub", "net", "parity", "parity_pubsub", "parity_accounts", "traces", "rpc", "shh", "shh_pubsub"]
Why I have silent stdout?