---
title: "Queries a list of ApprovedUpgrade items."
method: GET
path: "/dcl/dclupgrade/approved-upgrades"
tags: ["Query"]
---

# Queries a list of ApprovedUpgrade items.

`GET /dcl/dclupgrade/approved-upgrades`

## Request

- The document declares no server URL.
- Auth: none declared

## Query parameters

- `pagination.key` string, byte
- `pagination.offset` string, uint64
- `pagination.limit` string, uint64
- `pagination.count_total` boolean
- `pagination.reverse` boolean

## Response `200`

A successful response.

- object
  - `approvedUpgrade` object[]
    - `plan` object: Plan specifies information about a planned upgrade and when it should occur.
      - `name` string: Sets the name for the upgrade. This name will be used by the upgraded version of the software to apply any special "on-upgrade" commands during the first BeginBlock method after the upgrade is applied. It is also used to detect whether a software version can handle a given upgrade. If no upgrade handler with this name has been set in the software, it will be assumed that the software is out-of-date when the upgrade Time or Height is reached and the software will exit.
      - `time` string, date-time: Deprecated: Time based upgrades have been deprecated. Time based upgrade logic has been removed from the SDK. If this field is not empty, an error will be thrown.
      - `height` string, int64: The height at which the upgrade must be performed.
      - `info` string
      - `upgraded_client_state` object: Deprecated: UpgradedClientState field has been deprecated. IBC upgrade logic has been moved to the IBC module in the sub module 02-client. If this field is not empty, an error will be thrown.
        - `@type` string: A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one "/" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading "." is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics.
    - `creator` string
    - `approvals` object[]
      - `address` string
      - `time` string, int64
      - `info` string
      - `schemaVersion` integer
    - `rejects` object[]
      - `address` string
      - `time` string, int64
      - `info` string
      - `schemaVersion` integer
    - `schemaVersion` integer
  - `pagination` object: PageResponse is to be embedded in gRPC response messages where the corresponding request message has used PageRequest. message SomeResponse { repeated Bar results = 1; PageResponse page = 2; }
    - `next_key` string, byte: next_key is the key to be passed to PageRequest.key to query the next page most efficiently. It will be empty if there are no more results.
    - `total` string, uint64

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/zigbee-alliance/apis/distributed-compliance-ledger-rest-and-grpc-gateway-docs.md) - [All operations](https://skmtc.dev/zigbee-alliance/apis/distributed-compliance-ledger-rest-and-grpc-gateway-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/zigbee-alliance/apis/distributed-compliance-ledger-rest-and-grpc-gateway-docs/revisions/b5ba63ddd069?raw)
