5
dist "cosmossdk.cosmos"12
endpoint := "YOUR_QUICKNODE_ENDPOINT"13
대상, opts opts := getGrpcOptions(endpoint)14
grpcConn, err := grpc.Dial(대상, opts...)20
req := &dist.QueryValidatorSlashesRequest{21
ValidatorAddress: "0x8b4eF40FD500dFa0Ad2381976C90D9Fad8a42814",23
분포 := dist.NewQueryClient(grpcConn)24
답변, err := 분포.ValidatorSlashes(컨텍스트.배경(), req)28
fmt.Println("유효성 검사 슬래시:")29
for _, slash := range resp.Slashes {30
fmt.PrintlnPrintln"period:", 슬래시.GetValidatorPeriod(), "fraction:", 슬래시.GetFraction())
5
dist "cosmossdk.cosmos"12
endpoint := "YOUR_QUICKNODE_ENDPOINT"13
대상, opts opts := getGrpcOptions(endpoint)14
grpcConn, err := grpc.Dial(대상, opts...)20
req := &dist.QueryValidatorSlashesRequest{21
ValidatorAddress: "0x8b4eF40FD500dFa0Ad2381976C90D9Fad8a42814",23
분포 := dist.NewQueryClient(grpcConn)24
답변, err := 분포.ValidatorSlashes(컨텍스트.배경(), req)28
fmt.Println("유효성 검사 슬래시:")29
for _, slash := range resp.Slashes {30
fmt.PrintlnPrintln"period:", 슬래시.GetValidatorPeriod(), "fraction:", 슬래시.GetFraction())