Skip to main content

/cosmwasm/wasm/v1/code REST API Endpoint

Gets the metadata for all stored wasm codes.

Updated on
May 31, 2024

/cosmwasm/wasm/v1/code REST API Endpoint

Parameters

This method does not accept any parameters

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
pagination
object
The pagination object which contains the following fields:
next_key
string
The key to be passed to PageRequest.key to query the next page most efficiently
total
string
The total number of results available if PageRequest.count_total was set, its value is undefined otherwise
Request
1
curl --location 'https://docs-demo.sei-pacific.quiknode.pro/cosmwasm/wasm/v1/code'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free