Skip to main content

Hardhat

Official documentation
TAC EVM Layer provides full compatibility with Hardhat, Ethereum’s most popular development framework. Deploy your existing Solidity contracts without modification, test, and verify contracts on the Block Explorer.

Installation & Setup

Setting up Hardhat for TAC development requires no special configuration - it works exactly like any other EVM chain. Refer to our example app create-tac-app to see the relevant hardhat deployment approach.

Deployment

Below you can find the deployment commands used within create-tac-app
Ensure you have sufficient TAC tokens for gas fees before deploying to mainnet.
# Deploy to TAC Saint Petersburg Testnet
npx hardhat run scripts/deploy.ts --network tacTestnet

Common Issues & Solutions

Problem: RPC connection failures or timeoutsSolutions:
  • Verify RPC URLs are correct
  • Increase timeout in network configuration
networks: {
    tacTestnet: {
        url: "https://spb.rpc.tac.build",
        timeout: 60000, // Increase timeout
    }
}
  • Try alternative RPC endpoints if available