Skip to main content

Deploying Contracts

1

Add your deployer wallet's private key

Create a new wallet keystore to securely store your deployer account’s private key.
Enter your wallet’s private key when prompted and provide a password to encrypt it.
2

Get ETH in the deployer account

The deployer account requires ETH to deploy a smart contract.
  • Testnet: Claim ETH via a faucet, or bridge ETH from Sepolia.
  • Mainnet: Use a bridge to transfer ETH to Abstract mainnet.
3

Deploy your smart contract

Run the following command to deploy your smart contracts:
Note: Replace the contract path and Etherscan API key with your own.If successful, the output should look similar to the following:

Providing Constructor Arguments

If your smart contract has a constructor with arguments, provide the arguments in the order they are defined in the constructor following the --constructor-args flag.
Note: Replace the contract path, constructor arguments, and Abscan API key with your own.