5
authz "cosmossdk.cosmos"12
endpoint := "YOUR_QUICKNODE_ENDPOINT"13
대상, opts opts := getGrpcOptions(endpoint)14
grpcConn, err := grpc.Dial(대상, opts...)20
authzClient := authz.NewQueryClient(grpcConn)21
resp, err := authzClient.GranterGrants(context.Background(), &authz.QueryGranterGrantsRequest{Granter: "cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg"})25
for _, grant := range resp.Grants {26
fmt.PrintlnPrintln(grant.수혜자, 보조금.수여자)
5
authz "cosmossdk.cosmos"12
endpoint := "YOUR_QUICKNODE_ENDPOINT"13
대상, opts opts := getGrpcOptions(endpoint)14
grpcConn, err := grpc.Dial(대상, opts...)20
authzClient := authz.NewQueryClient(grpcConn)21
resp, err := authzClient.GranterGrants(context.Background(), &authz.QueryGranterGrantsRequest{Granter: "cosmos1wqy2s6nwnxj57l0l5rdjxxr646p3al6ymmpycg"})25
for _, grant := range resp.Grants {26
fmt.PrintlnPrintln(grant.수혜자, 보조금.수여자)