Skip to main content

/cosmwasm/wasm/v1/code/{code_id} REST API Endpoint

Gets the binary code and metadata for a singe wasm code.

Updated on
May 31, 2024

/cosmwasm/wasm/v1/code/{code_id} REST API Endpoint

Path Parameters

code_id
string
REQUIRED
The code id

Returns

code_infos
array
An array of code_infos which contains the following fields:
code_id
string
A unique identifier for the uploaded smart contract code
creator
string
The address of the account that uploaded the smart contract code
data_hash
string
A hash of the uploaded smart contract code, used for verification and integrity checking
instantiate_permission
object
Contains information about who has permission to instantiate (deploy) the contract
permission
string
Specifies who can instantiate the contract
address
string
If the permission is set to OnlyAddress, this field specifies the address that has permission to instantiate the contract
data
string
The raw bytecode of the smart contract, encoded in base64
Request
1
curl --location 'https://docs-demo.sei-pacific.quiknode.pro/cosmwasm/wasm/v1/code/1'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free