<!-- TokenOS docs · Building apps · Markdown mirror of https://tokenos.ai/docs/deploy-contracts · HTML: https://tokenos.ai/docs/deploy-contracts · index: https://tokenos.ai/llms.txt -->

# Deploy contracts

The **Deploy Contract** action compiles the program your build generated and hands the deployment transaction to your wallet. TokenOS never holds a deployer key; every deployment is recorded, gets a public page and lands on the leaderboard.

### Networks

Served live by `GET /api/wallet-deploy/networks` — each entry carries the RPC, explorer, native asset and faucet links.

| Network | Type | Chain id | Funds |
| --- | --- | --- | --- |
| Ethereum Sepolia | EVM testnet | 11155111 | Faucet |
| Base Sepolia | EVM testnet | 84532 | Faucet |
| Arbitrum Sepolia | EVM testnet | 421614 | Faucet |
| Robinhood Chain Testnet | EVM testnet | 46630 | Faucet |
| Solana Devnet | Solana | — | Airdrop |
| Ethereum Mainnet | EVM mainnet | 1 | Real ETH |
| Base Mainnet | EVM mainnet | 8453 | Real ETH |
| Arbitrum One | EVM mainnet | 42161 | Real ETH |
| Robinhood Chain | EVM mainnet | 4663 | Real ETH |
| Solana Mainnet | Solana | — | Real SOL (program rent ≈ 1.5 – 3 SOL) |

### Flow

1. **Pick a network** — Start with a testnet. The modal links the faucet for the network you chose.
2. **Compile** — Solidity is compiled server-side with solc (`POST /api/wallet-deploy/compile/{project_id}`); Anchor programs follow the copy-paste CLI steps shown in the modal.
3. **Sign** — MetaMask (EVM) or Phantom (Solana) signs the deployment. Mainnets require ticking a real-funds confirmation first.
4. **Record** — The modal confirms the transaction and calls `POST /api/wallet-deploy/record`; the address is wired into the app config and the Launch Checklist updates.
5. **Rebuild for mainnet** — After a mainnet deploy, set Live Web3 Config to mainnet and rebuild so RPC endpoints follow the contract.

> **Warning — Gas, not credits**
> Contract deployment costs gas paid by your wallet — Base / Arbitrum usually cents to a few dollars, Ethereum more, Solana programs roughly 1.5 – 3 SOL of rent. No credits are charged for a deployment.

### Public contract pages, leaderboard, fork

- `/c/{project_id}/{address}` — a public, read-only page with source, ABI, recent interactions and a Fork button; backed by `GET /api/wallet-deploy/public/{project_id}/{address}`.
- Every page has a generated 1200×630 share card at `/api/og/c/{project_id}/{address}/image.png`.
- `/leaderboard` ranks every deployed contract by total interactions, 24-hour calls and unique callers (`GET /api/wallet-deploy/leaderboard`).
- **Fork** (`POST /api/wallet-deploy/fork/{project_id}/{address}`) copies any public deployment into a fresh workspace tied to your wallet.

### Endpoints

- **GET** `/api/wallet-deploy/networks` · Public
  Testnets and mainnets with RPC, explorer, chain id and faucets.

- **POST** `/api/wallet-deploy/compile/{project_id}` · Wallet signature
  Compile the project's Solidity; returns ABI + bytecode for the wallet to deploy.

- **POST** `/api/wallet-deploy/record` · Wallet signature
  Record a confirmed deployment (network, address, tx) against the project.

- **GET** `/api/wallet-deploy/status/{project_id}` · Public
  Deployments for a project by network.

- **GET** `/api/wallet-deploy/leaderboard` · Public
  Global ranking of deployed contracts.

Contract templates follow the chain you built for: Solidity on EVM chains, Anchor / Rust on Solana. Vyper, Move and Tact can be requested in the prompt for the contract source, but in-IDE compile + deploy targets Solidity and Anchor. Next: [Go Live](https://tokenos.ai/docs/go-live).

---

*Building apps · TokenOS documentation. Canonical page: https://tokenos.ai/docs/deploy-contracts. All docs as Markdown: https://tokenos.ai/llms.txt. Payments on TokenOS are for metered usage only; nothing on this page is investment advice or a promise of income.*
