Skip to main content

/cosmwasm/wasm/v1/contract/{address}/history REST API Endpoint

Gets the contract code history.

Updated on
Jun 28, 2025

/cosmwasm/wasm/v1/contract/{address}/history REST API Endpoint

Path Parameters

address
string
REQUIRED
The address of the contract to query

Query Parameters

pagination.key
string
The value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set
pagination.offset
string
The numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set
pagination.limit
string
The total number of results to be returned in the result page. If left empty it will default to a value to be set by each app
pagination.count_total
boolean
When set to true it indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set
pagination.reverse
boolean
It is set to true if results are to be returned in the descending order

Returns

entries
array
An array of objects representing the historical operations performed on the contract
operation
string
The type of operation performed on the contract
code_id
string
The unique identifier of the code associated with this historical operation
updated
object
The block height and transaction index when this operation was performed
block_height
string
The block height at which the operation was recorded
tx_index
string
The transaction index within the block for this operation
msg
object
An object containing the message and parameters used during this operation
count
integer
The number of parameters or messages included during this operation
admin
string
The address of the account with administrative rights over the contract during this operation
leader
string
The address of the leader specified during this operation
members
array
An array of addresses representing the members specified during this operation
name
string
A human-readable name specified during this operation
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
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free