diff --git a/clients/nimbus-el/enode.sh b/clients/nimbus-el/enode.sh index f5395afa99..0c4ad0c5ad 100644 --- a/clients/nimbus-el/enode.sh +++ b/clients/nimbus-el/enode.sh @@ -9,7 +9,7 @@ # Immediately abort the script on any error encountered set -e -TARGET_RESPONSE=$(curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"net_nodeInfo","params":[],"id":1}' "localhost:8545" ) +TARGET_RESPONSE=$(curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":1}' "localhost:8545" ) TARGET_ENODE=$(echo ${TARGET_RESPONSE}| jq -r '.result.enode') echo "$TARGET_ENODE"