protofire / eth-cli

CLI swiss army knife for Ethereum developers
https://www.npmjs.com/package/eth-cli
MIT License
239 stars 40 forks source link

update RPC communication to use :8551 and JWT token #168

Open donpdonp opened 1 year ago

donpdonp commented 1 year ago

Running geth 1.12.1, the http user/pass is gone and --authrpc.jwtsecret /tmp/jwtsecret is used instead. This unfortunately makes eth-cli useless for a local geth server. The update looks simple, add a Authorization: Bearer $TOKEN header to the rpc request.

https://github.com/jwasinger/geth-jwt-example/blob/master/curl_example.sh