---
title: "Code gets the binary code and metadata for a single wasm code"
method: GET
path: "/cosmwasm/wasm/v1/code/{code_id}"
tags: ["Query"]
---

# Code gets the binary code and metadata for a single wasm code

`GET /cosmwasm/wasm/v1/code/{code_id}`

## Path parameters

- `code_id` string, uint64, required

## Response `200`

A successful response.

- CosmwasmWasmV1QueryCodeResponse
  - `code_info` 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[]
  - `data` string, byte

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/coreumfoundation/apis/title-goes-here.md) · [All operations](https://skmtc.dev/coreumfoundation/apis/title-goes-here/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coreumfoundation/title-goes-here/revisions/2a2e5bc4593a/schema)
