Execution Client(실행 클라이언트)

개발자, Bono·2024년 8월 5일

Go-Ethereum

목록 보기
2/5
post-thumbnail
# --authrpc.addr localhost: 인증된 RPC 인터페이스를 localhost에 바인딩합니다.
# --authrpc.port 8551: 인증된 RPC 인터페이스가 사용할 포트를 8551로 설정합니다.
# --authrpc.vhosts localhost: localhost에서의 접근만 허용합니다.
# --authrpc.jwtsecret /path/to/jwtsecret: JWT 시크릿 파일의 경로를 지정합니다.
# --datadir /path/to/ethereum-data : 이더리움 데이터가 저장될 경로를 지정합니다.
# --http --http.api eth,net,engine,admin : HTTP RPC를 활성화하고 필요한 API를 노출합니다.
# --syncmode snap : 빠른 동기화 모드를 사용합니다.
geth --authrpc.addr localhost --authrpc.port 8551 --authrpc.vhosts localhost --authrpc.jwtsecret /path/to/jwtsecret --datadir /path/to/ethereum-data --http --http.api eth,net,engine,admin --syncmode snap

# 예시
mkdir -p /var/lib/ethereum/geth
# 실행 클라이언트 실행
sudo geth --datadir /var/lib/ethereum \
     --authrpc.addr localhost \
     --authrpc.port 8551 \
     --authrpc.vhosts localhost \
     --authrpc.jwtsecret /var/lib/ethereum/geth/jwtsecret \
     --http --http.api eth,net,engine,admin

0개의 댓글