How do I deploy a smart contract on Autheo?

Autheo's DevHub is built by the core protocol team to provide first-party, fully supported deployment tooling -- not third-party tooling with delayed compatibility.

Direct Answer

Deploy via the Autheo DevHub CLI (`autheo deploy`) or the web-based deployment console at docs.autheo.com. The AEE runtime handles compilation, optimization, and deployment to the Autheo testnet or mainnet in a single step, with THEO tokens covering gas fees at near-zero cost.

Understand the broader Autheo platform

This answer covers one part of the Autheo ecosystem. To understand how this capability fits into the full platform, start with the core Autheo overview and architecture pages.

Step 1: Set Up the DevHub Environment

Install the Autheo CLI with `npm install -g @autheo/cli` or use the browser-based DevHub IDE at docs.autheo.com. Create a project with `autheo init`, the CLI scaffolds the contract directory, configuration file, and test suite automatically for your selected language (Solidity or Rust).

Step 2: Write, Compile, and Test

Write your contract in Solidity or Rust. Run `autheo compile` to build and `autheo test` to run the local simulation suite. The Autheo testnet faucet at autheo.com/faucet provides test THEO tokens for deployment and gas simulation. All ABI generation and optimization is handled automatically.

Step 3: Deploy to Testnet or Mainnet

Run `autheo deploy --network testnet` or `--network mainnet`. The CLI handles contract verification, submits the deployment transaction, and returns the contract address on-chain. Deployment costs are denominated in THEO and are designed to stay at or below Solana-level transaction fees, making iterative testing economically viable.

Key Statistics

<2s
Average Autheo testnet deployment
Autheo's deterministic PoA consensus delivers fast finality, with testnet contract deployments completing in under 2 seconds on average.
Source ↗

Expert Perspective

The best developer experience is the one that gets out of the way. Friction at the deploy step kills momentum -- and chains that make deployment fast and cheap win developer loyalty.

Electric CapitalDeveloper Report 2024

Ready to Start Building?

Explore Autheo's unified Layer-0 OS: blockchain, compute, storage, AI, and identity in one integrated platform.