Skip to main content

Deploy a Smart Contract on Avalanche Using Remix and Core


Avalanche's Primary Network is a Subnet that has three chains: P-Chain, X-Chain, and C-Chain. The C-Chain is an instance of the Ethereum Virtual Machine powered by Avalancheโ€™s Snowman consensus protocol. The C-Chain RPC can do anything a typical Ethereum client can by using the Ethereum-standard RPC calls. The immediate benefits of using the C-Chain rather than Ethereum are all of the benefits of using Avalanche. These properties that could considerably improve the performance of Dapps and the user experience.

Today, we will deploy and test a smart contract on Avalanche using Remix and Core Wallet.

Step 1: Setting up Coreโ€‹

If you don't already have a Core wallet, follow this guide to create a new wallet.

If you want to use the Avalanche C-Chain, it can be selected from the networks list.

To switch to the Fuji test network, go to Settings, select Advanced, and then turn Testnet Mode on.


Local Testnet (Avalanche Network Runner) Settings: (Avalanche Network Runner Tutorial)

  • Network Name: Avalanche Local C-Chain
  • New RPC URL: (Note: the port number should match your local setting which can be different from 34890.)
  • ChainID: 43112
  • Symbol: AVAX
  • Explorer: N/A

Step 2: Funding Your C-Chain Addressโ€‹

Using Avalanche Walletโ€‹

On the Mainnet, you can use the Avalanche Wallet to transfer funds from the X-Chain to your C-Chain address. The process is simple, as explained in this tutorial. Wallet can be used on test and local networks, too.

Using Test Network Faucetโ€‹

For funding on the test network, you can use the Test Network Faucet. Navigate to and paste your C-Chain address. Faucet will automatically know that it needs to send the test AVAX to C-Chain. Click the CAPTCHA checkbox and select 'Request AVAX' button. Your address will receive test AVAX in a few seconds.

Funding on Local Testnetโ€‹

On a local network, you can easily fund your addresses by following this.

Step 3: Connect Core and Deploy a Smart Contract Using Remixโ€‹

Open Remix -> Select Solidity

Remix file explorer

Load or create the smart contracts that we want to compile and deploy using Remix file explorer.

For this example, we will deploy a simple Hello World contract from here.

Hello world contract

Select the Solidity compiler tab and compile the contract.

Compile contract

Navigate to Deploy & Run transactions Tab -> Open the "ENVIRONMENT" drop-down and select Injected Provider (make sure Core is loaded).

Deploy and run transactions

A pop up will ask which wallet to use. Select Core.

Choose wallet

Now, the smart contract is compiled, Core is injected, and we are ready to deploy our Hello world contract. Click "Deploy."

Deploy hello world

Confirm the transaction on the Core pop up.

Confirm TX

Our contract is successfully deployed!

Deployed contract

Now, we can expand it by selecting it from the "Deployed Contracts" tab and test it out.

Interact with contract

The contract ABI and Bytecode are available on the Solidity compiler tab.

ABI and bytecode

If you had any difficulties following this tutorial or simply want to discuss Avalanche with us, you can join our community at Discord!