Deploying contracts
In order to deploy contracts, you will need your network's RPC which is available from your network's dashboard.
Hardhat
To deploy contract using Hardhat, please follow the guidelines here: https://hardhat.org/tutorial/deploying-to-a-live-network. You will need to add a new network configuration like the one below to your hardhat.config.js file.
You can then deploy contracts by specifying this network with the --network
parameter.
Make sure to use a separate private key for testing and avoid exposing it in your codebase
Foundry
To deploy contracts using Foundry, you can follow the documentation here: https://book.getfoundry.sh/forge/deploying. You can run the command below to deploy a simple contract.
Make sure that you have funded your account using the faucet before deploying any contracts
Last updated