본문 바로가기
블록체인 공부

geth --rpc 명령어 에러 flag provided but not defined: -rpc

by 으노으뇨 2023. 1. 30.
728x90
반응형
SMALL

geth 명령어를 사용했을때 이런 오류가 발생했습니다.

geth --rpc -rpcapi web3.eth.net.personal
flag provided but not defined: -rpc

바로 -rpc 명령어를 인식못하는 경우입니다.

이것을 --http로 변환해서 사용하면 됩니다.

그럼 위의 명령어를 아래와같이 rpc를 http로 모두 변환해서 사용한다면

geth --http -http.api web3.eth.net.personal

정상적으로 실행된 모습

비슷한 사례

--rpcapi  -> --http.api

--rpcport  -> --http.port

--rpccorsdomain -> --http.corsdomain

 

728x90
반응형
LIST

'블록체인 공부' 카테고리의 다른 글

[기본geth명령어] 기본 geth명령어 /  (0) 2023.01.30

댓글