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: "seivaloper14h28te6uyw6dcz3dt5gjy6v93v5czsjprqga9j",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: "seivaloper14h28te6uyw6dcz3dt5gjy6v93v5czsjprqga9j",23
분포 := dist.NewQueryClient(grpcConn)24
답변, err := 분포.ValidatorSlashes(컨텍스트.배경(), req)28
fmt.Println("유효성 검사 슬래시:")29
for _, slash := range resp.Slashes {30
fmt.PrintlnPrintln"period:", 슬래시.GetValidatorPeriod(), "fraction:", 슬래시.GetFraction())