ADI Network Testnet Quickstart

Getting starting developing with ADI Network Testnet

You can use all standard EVM tooling for ADI Network Testnet. You can find instructions for bridging testnet ADI and ETH to the ADI Network Testnet in the Network Details page.

To get started with Foundry or Hardhat, follow the steps below:

Deploying to ADI Network Testnet

Below are setup examples for Foundry and Hardhat 3 (with Viem or Ethers). Select your preferred setup tab:


Foundry Setup

1. The Counter contract code

contract Counter {
    uint256 public number;

    function setNumber(uint256 newNumber) public {
        number = newNumber;
    }

    function increment() public {
        number++;
    }
}

2. Create a new Foundry project

forge init Counter
cd Counter

3. Build the project

4. Set your private key for deploying, ensure that it has some balance

5. Create counter.sol file and put the contract code inside.

6. Create counter.s.sol and put the script inside, the script will deploy the counter contract

7. Deploy the contract

8. Set the number value

9. Get the latest number value


Last updated