> ## Documentation Index
> Fetch the complete documentation index at: https://mantrachain.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploying Contracts

> Quick reference for deploying smart contracts on MANTRA Chain

> [!NOTE]
>
> For a comprehensive step-by-step guide including setup instructions, see our [Deploy a Smart Contract](https://mantrachain.mintlify.site/deploy-smart-contract.md) tutorial.

Deploy your EVM smart contracts to MANTRA Chain using standard EVM deployment tools.

## Network Configuration

| Network | RPC URL | Chain ID | Explorer |
| - | - | - | - |
| **Mainnet** | `https://evm.mantrachain.io` | `5888` | [blockscout.mantrascan.io](https://blockscout.mantrascan.io) |
| **Testnet (DuKong)** | `https://evm.dukong.mantrachain.io` | `5887` | [explorer.dukong.io](https://explorer.dukong.io) |

## Prerequisites

* A funded wallet with MANTRA tokens for gas fees ([Testnet Faucet](https://mantrachain.mintlify.site/developers/getting-started/testnet-faucet.md))
* Your contract compiled and ready to deploy
* Network configuration set up (see [Getting Started](https://mantrachain.mintlify.site/developers/evm/getting-started.md))

## Quick Deploy Commands

### Using Foundry

```bash theme={null}
forge create src/MyContract.sol:MyContract \
  --rpc-url https://evm.dukong.mantrachain.io \
  --private-key $PRIVATE_KEY \
  --chain-id 5887
```

### Using Hardhat

```bash theme={null}
npx hardhat run scripts/deploy.js --network mantra_testnet
```

### Using Remix

1. Go to [Remix IDE](https://remix.ethereum.org)
2. Compile your contract
3. Select "Injected Provider" (MetaMask)
4. Ensure MetaMask is connected to MANTRA Chain
5. Deploy your contract

## After Deployment

After deployment, verify your contract on the block explorer. See [Verifying Contracts](https://mantrachain.mintlify.site/developers/evm/verifying-contracts.md) for details.

## Related Guides

* [Deploy a Smart Contract](https://mantrachain.mintlify.site/deploy-smart-contract.md) - Complete tutorial with setup
* [Using Foundry](https://mantrachain.mintlify.site/developers/evm/using-foundry.md) - Foundry-specific guide
* [Using Hardhat](https://mantrachain.mintlify.site/developers/evm/using-hardhat.md) - Hardhat-specific guide
* [Verifying Contracts](https://mantrachain.mintlify.site/developers/evm/verifying-contracts.md) - Contract verification
* [Using Precompiles](https://mantrachain.mintlify.site/developers/evm/using-precompiles.md) - Access native chain features


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.