Deploy EVM contracts using SYBL using Hardhat
Contracts developed using Hardhat can be deployed with minor configuration changes.
import { HardhatUserConfig } from "hardhat/config"; import "@nomicfoundation/hardhat-toolbox"; const apiKey = process.env.SYBL_API_KEY; const chainId = 5; // goerli const config: HardhatUserConfig = { solidity: "0.8.19", networks: { goerli: { chainId, url: "https://rpc.sybl.dev/v1/eth/rpc?api_key=" + apiKey + "&chain_id=" + chainId, accounts: "remote", }, }, }; export default config;
npx hardhat run --network goerli scripts/deploy.ts