Deploy a contract

Use Clarinet to publish your contracts to the testnet or mainnet networks.

The first step to deploying your contracts is to generate a deployment plan.

Terminal
clarinet deployment generate --mainnet --medium-cost

Clarinet uses the Clarinet.toml file to locate and analyze all the contracts in the project. If the Clarity code is valid, the command will indicate success with the response below.

Terminal
 2 contracts checked
Warnings

The clarinet check command may also report warnings indicating the code is valid.

You may also perform a syntax-check on a single file by using the command below.

Terminal
clarinet check <path/to/file.clar>

Clarinet reports syntactical errors, but does not perform type-checking or other semantic checks as that would require the full context for a comprehensive analysis.

Last updated on