---
title: "Codes gets the metadata for all stored wasm codes"
method: GET
path: "/cosmwasm/wasm/v1/code"
tags: ["Query"]
---

# Codes gets the metadata for all stored wasm codes

`GET /cosmwasm/wasm/v1/code`

## 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.

- CosmwasmWasmV1QueryCodesResponse
  - `code_infos` CosmwasmWasmV1CodeInfoResponse[]
    - `code_id` string, uint64
    - `creator` string
    - `data_hash` string, byte
    - `instantiate_permission` CosmwasmWasmV1AccessConfig — AccessConfig access control type.
      - `permission` 'ACCESS_TYPE_UNSPECIFIED' | 'ACCESS_TYPE_NOBODY' | 'ACCESS_TYPE_EVERYBODY' | 'ACCESS_TYPE_ANY_OF_ADDRESSES' — - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses
      - `addresses` string[]
  - `pagination` CosmosBaseQueryV1beta1PageResponse — 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.net/coreumfoundation/apis/title-goes-here.md) · [All operations](https://skmtc.net/coreumfoundation/apis/title-goes-here/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coreumfoundation/title-goes-here/versions/2a2e5bc4593a/schema)
