Deploy contracts

Learn how to deploy contracts in the Hiro Platform.


Prerequisites

  • Follow the create project guide to create or import a project.
  • Make sure you have installed and connected a Stacks wallet to deploy your contracts.

Use the deploy button

Once your project is setup, you can deploy the contracts to testnet or mainnet using the "Deploy" button on the Hiro Platform.

deploy contracts

The following are the steps to deploy your contracts using the deploy button.

  1. 1On the projects page, select the project you want to deploy contracts from.
  2. 2Use the "Deploy Contracts" button available at the top right of the page.
  3. 3Choose the network you want to deploy to. Note: for devnet, reference this guide. The steps below are specific to testnet and mainnet.
  4. 4Once you choose a network, you will see a button to generate a deployment plan.
  5. 5Once the deployment plan is generated, you will see the list of contracts to be deployed - you can now connect your wallet and click "Deploy" to deploy your contracts.

deploy contracts

If you find issues with your deployment process, you can reach out to us on the #hiro-platform channel on Discord under the Hiro Developer Tools section or file an issue here.