---
title: "StoreAndMigrateContract defines a governance operation for storing and migrating the contract. The authority is defined in the keeper."
method: POST
path: "/cosmwasm.wasm.v1.Msg/StoreAndMigrateContract"
tags: ["Msg"]
---

# StoreAndMigrateContract defines a governance operation for storing and migrating the contract. The authority is defined in the keeper.

`POST /cosmwasm.wasm.v1.Msg/StoreAndMigrateContract`

Since: 0.42

## Request body

- object — MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract request type. Since: 0.42
  - `authority` string — Authority is the address of the governance account.
  - `wasm_byte_code` string, byte
  - `instantiate_permission` object — AccessConfig access control type.
    - `permission` 'ACCESS_TYPE_UNSPECIFIED' | 'ACCESS_TYPE_NOBODY' | 'ACCESS_TYPE_EVERYBODY' | 'ACCESS_TYPE_ANY_OF_ADDRESSES' — - ACCESS_TYPE_UNSPECIFIED: AccessTypeUnspecified placeholder for empty value - ACCESS_TYPE_NOBODY: AccessTypeNobody forbidden - ACCESS_TYPE_EVERYBODY: AccessTypeEverybody unrestricted - ACCESS_TYPE_ANY_OF_ADDRESSES: AccessTypeAnyOfAddresses allow any of the addresses
    - `addresses` string[]
  - `contract` string
  - `msg` string, byte

## Response `200`

A successful response.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/wardenprotocol/apis/http-api-console.md) · [All operations](https://skmtc.dev/wardenprotocol/apis/http-api-console/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wardenprotocol/http-api-console/revisions/44399dd0ab35/schema)
