History

ContractHistory gets the contract code history

GET/cosmwasm/wasm/v1/contract/{address}/history
Path parameters
address*string

address is the address of the contract to query

Query parameters
Response

A successful response.

Body
entriesarray of object
paginationobject

pagination defines the pagination in the response.

Request
const response = await fetch('/cosmwasm/wasm/v1/contract/{address}/history', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "entries": [
    {
      "operation": "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",
      "code_id": "text",
      "updated": {
        "block_height": "text",
        "tx_index": "text"
      },
      "msg": "Ynl0ZXM="
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}

Last updated