Comment on page
🏗

Build Tools

You can use Kinto with all your favorite build tools
For a complete guide on deploying contracts on Kinto, see our development guide.

Foundry

Foundry is a smart contract development toolchain.
With Foundry you can manage your dependencies, compile your project, run tests, deploy smart contracts, and interact with the chain from the command-line and via Solidity scripts.
Check out the Foundry Book to get started with using Foundry with Kinto.

Using Foundry with Kinto

Foundry supports Kinto out-of-the-box.
Just provide the Kinto RPC URL and Chain ID when deploying and verifying your contracts.

Deploying a smart contract

forge create ... --rpc-url=https://test-rpc.kinto.xyz/replica-http

Verifying a smart contract

forge verify-contract ... --chain-id 42888

Hardhat

Hardhat is a development environment for extensible and rapid smart contract development.
You can use Hardhat to modify, build, debug, and deploy your smart contracts to Kinto.

Using Hardhat with Kinto

To configure Hardhat to deploy smart contracts to Kinto, update your project’s hardhat.config.ts file by adding Kinto as a network:
networks: {
// for testnet
"kinto-goerli": {
url: "https://goerli.base.org",
accounts: [process.env.PRIVATE_KEY as string]
},
},
defaultNetwork: "kinto-goerli",

Truffle

Truffle is a comprehensive suite of tools for smart contract development.
You can use Truffle to quickly build, test, debug, and deploy your smart contracts to Base.

Using Truffle with Base

To configure Truffle to deploy smart contracts to Kinto:
  1. 1.
    Install Truffle by running the following command:
    npm install -g truffle
  2. 2.
    Create a new Truffle project by running the following command:
    truffle init
  3. 3.
    Update your project's truffle-config.js file by adding Kinto as a network:
    const HDWalletProvider = require('@truffle/hdwallet-provider');
    module.exports = {
    networks: {
    'kinto-goerli': {
    provider: function () {
    return new HDWalletProvider('MNEMONIC', 'https://test-rpc.kinto.xyz/replica-http');
    },
    },
    },
    };
  4. 4.
    Compile and deploy your smart contract by running the following command:
    truffle migrate --network kinto-goerli