Skip to main content

GetWasmCodeByID gRPC Method

Returns a stored CosmWasm code record by code ID.

Updated on
Sep 17, 2026

Parameters

code_id
integer

The numeric identifier of the stored CosmWasm code.

Returns

code_id
string

The numeric identifier assigned to the stored CosmWasm code.

tx_hash
string

The hash of the transaction that stored the CosmWasm code.

checksum
object

The algorithm and digest used to verify the stored CosmWasm bytecode.

algorithm
string

The hashing algorithm used to calculate the CosmWasm code checksum.

hash
string

The checksum digest calculated from the CosmWasm bytecode.

created_at
string

The block time when the CosmWasm code was stored, expressed in Unix milliseconds.

contract_type
string

The detected contract type for the stored CosmWasm code.

version
string

The detected version string for the contract or stored code.

permission
object

The access policy that controls who may instantiate the stored code.

access_type
integer

The access policy that controls who may instantiate the stored code.

address
string

The account address allowed by the instantiation policy, when applicable.

code_schema
string

A serialized preview of the schema exposed by the stored code.

code_view
string

A serialized preview of the stored code repository, which may include its schema directory.

instantiates
string

The number of contracts instantiated from the stored code.

creator
string

The Injective address that stored the code or instantiated the contract.

code_number
string

The monotonically increasing index assigned when the code was stored.

proposal_id
string

The governance proposal identifier that authorized storing the code, when applicable.

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free