Skip to content

Developer Quick-Start

Build and deploy smart contracts on AnimeChain.

Animechain is like most Ethereum based chains. If you can learn to deploy code on Ethereum or an Eth testnet, you only need to change a few parameters to deploy all that code on Animechain (and of course... some funds).

Development and Deployment via a UI (Remix)

Developing via the Remix UI (remix.ethereum.org) is the simplest way to test

  1. Add AnimeChain (or AnimeChain Testnet) to your browser wallet provider.
  2. Select the wallet/network so it's active and ensure you have funds. If you need funds on testnet, use the Testnet Faucet.
  3. In Remix, verify the selected network is AnimeChain and your account shows a non‑zero balance.
  4. Deploy your contract from the Deploy tab.
Remix Deploy tab targeting AnimeChain
Remix Deploy tab targeting AnimeChain
AnimeChain selected with compiled contract and balance visible
Remix with AnimeChain selected, compiled contract, and balance visible

πŸš€ Setup

# Install tools
npm install --save-dev hardhat @nomicfoundation/hardhat-viem dotenv

# Add network to wallet
await window.ethereum.request({
  method: 'wallet_addEthereumChain',
  params: [{
    chainId: '0x10D88', // Mainnet: 69000, Testnet: 0x1AF4 (6900)
    chainName: 'AnimeChain',
    nativeCurrency: { name: 'ANIME', symbol: 'ANIME', decimals: 18 },
    rpcUrls: ['https://rpc-animechain-39xf6m45e3.t.conduit.xyz/'], // Mainnet
    blockExplorerUrls: ['https://explorer-animechain-39xf6m45e3.t.conduit.xyz/']
  }]
});

βš™οΈ Hardhat Config

require('dotenv').config();
require('@nomicfoundation/hardhat-viem');

module.exports = {
  solidity: '0.8.20',
  networks: {
    animechain: { // Mainnet
      url: 'https://rpc-animechain-39xf6m45e3.t.conduit.xyz/',
      chainId: 69000,
      accounts: [process.env.PRIVATE_KEY]
    },
    testnet: { 
      url: 'https://explorer-animechain-testnet-i8yja6a1a0.t.conduit.xyz/',
      chainId: 6900,
      accounts: [process.env.PRIVATE_KEY]
    }
  }
};

Deploy: npx hardhat run scripts/deploy.js --network testnet


Example Contract

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract WaifuRegistry {
    event Registered(address indexed owner, string name);

    mapping(address => string) public waifuOf;

    function register(string calldata name) external {
        waifuOf[msg.sender] = name;
        emit Registered(msg.sender, name);
    }
}

Warning: Elevated Gas Price on AnimeChain

AnimeChain currently uses a manually increased gas price of 435.5 Gwei (ANIME). When estimating or setting gas, be sure to account for this higher value, or your transactions may fail or underprice.

AnimeChain Gas Tracker
Example (ethers v6):
// Legacy-style gasPrice
const gasPrice = ethers.parseUnits('435.5', 'gwei');
const tx = await wallet.sendTransaction({ to, value, gasPrice });

// Or EIP-1559 style
const maxFeePerGas = ethers.parseUnits('435.5', 'gwei');
const maxPriorityFeePerGas = ethers.parseUnits('0.5', 'gwei');
const tx1559 = await wallet.sendTransaction({ to, value, maxFeePerGas, maxPriorityFeePerGas });

Verify on Explorer

What is 'Verification'? Since code is just 1's and 0's, verification PROVES to the internet that your deployed code matches the code in your repository. This allows anyone on the internet to check that your code matches the code you deployed and you're not doing anything fishy.

AnimeChain Explorer supports the same source verification (similar to Etherscan). After deployment:

  1. Copy contract address.
  2. Open Explorer β†’ Contracts β†’ Verify.
  3. Paste address, set compiler version 0.8.20, licence MIT.
  4. Submit verification.


Note: All basic Solidity contracts work just the same on Animechain!