---
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`

## Response `200`

A successful response.

- object
  - `code_infos` object[]
    - `code_id` string, uint64
    - `creator` string
    - `data_hash` string, byte
    - `instantiate_permission` object — 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` object — pagination defines the pagination in the response.
    - `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/kiiglobal/apis/kiichain-pay-backend.md) · [All operations](https://skmtc.net/kiiglobal/apis/kiichain-pay-backend/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kiiglobal/kiichain-pay-backend/versions/8951249f5b63/schema)
