Foundry

What is Foundry?

Foundry is a a smart contract development toolset that assists developers in managing dependencies, compiling projects, running tests, deploying contracts, and interacting with blockchains through the command line interface.

Prerequisites

Before we start, make sure you have met the following conditions:

  1. Have some BNB on Matchain Networks. You can follow our guide on Bridges and Network Faucets.

  2. Foundry must be installed on your computer. If it’s not, follow this guide.

Getting started on Mainnet

Deploying a smart contract

forge create ... --rpc-url=https://rpc.matchain.io/

Verifying a smart contract

forge verify-contract ... --chain-id 698

Getting started on Testnet

Deploying a smart contract

forge create ... --rpc-url=https://testnet-rpc.matchain.io

Verifying a smart contract

forge verify-contract ... --chain-id 699

Last updated

Logo

All Rights Reserved © 2024 Matchain