12
endpoint := "YOUR_QUICKNODE_ENDPOINT"13
대상, opts opts := getGrpcOptions(endpoint)14
grpcConn, err := grpc.Dial(대상, opts...)20
height := int64(1234567)21
tc := tm.NewServiceClient(grpcConn)22
resp, err := tc.GetValidatorSetByHeight(context.Background(), &tm.GetValidatorSetByHeightRequest{Height: 20431584})26
fmt.Println("높이에 대한 유효성 검사기 설정: ", height)27
for _, val := range resp.Validators {28
fmt.PrintlnPrintlnval.GetAddress())
12
endpoint := "YOUR_QUICKNODE_ENDPOINT"13
대상, opts opts := getGrpcOptions(endpoint)14
grpcConn, err := grpc.Dial(대상, opts...)20
height := int64(1234567)21
tc := tm.NewServiceClient(grpcConn)22
resp, err := tc.GetValidatorSetByHeight(context.Background(), &tm.GetValidatorSetByHeightRequest{Height: 20431584})26
fmt.Println("높이에 대한 유효성 검사기 설정: ", height)27
for _, val := range resp.Validators {28
fmt.PrintlnPrintlnval.GetAddress())