Make curl easier with ethereum bash completions.
Enter any valid JSON RPC method and parameters
-a newAddress -p port -P protocol
swirl -a localhost -p 7545 -P https eth_getTransactionByHash 0x0...
curl -H "Content-Type: application/json" -X POST --data '{"id":120,"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":"0x0.."}' https://localhost:7545
Default: http://localhost:8545
swirl eth_getTransactionByHash 0x0...
curl -H "Content-Type: application/json" -X POST --data '{"id":120,"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":"0x0.."}' http://localhost:8545
swirl eth_getBlockByNumber 0xb true
curl -H "Content-Type: application/json" -X POST --data '{"id":120,"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["0xb", true]}' http://localhost:8545
swirl eth_sendTransaction "{'value': '0x10000000', 'gas': '0xf4240', 'from': '0x...' etc.. }"
curl -H "Content-Type: application/json" -X POST --data '{"id":120,"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"value": "0x10000000", "gas": "0xf4240", "from": "0x..." etc...}]}' http://localhost:8545
swirl eth_getTransactionByHash 0x0... eth_sendTransaction '{"value": "0x10000000", "as": "0xf4240", "from" "0x..." etc.. }'
chmod +x install.sh
./install.sh
mkdir -p ~/bin
cp swirl ~/bin && chmod +x ~/bin/swirl
touch ~/.bash_completion && cat swirl_completion >> ~/.bash_completion && source ~/.bashrc
zsh support