Learn how to deploy smart contracts on Abstract using Foundry.
Add your deployer wallet's private key
cast wallet import myKeystore --interactive
Get ETH in the deployer account
Deploy your smart contract
forge create src/Counter.sol:Counter \ --account myKeystore \ --rpc-url https://api.testnet.abs.xyz \ --chain 11124 \ --zksync \ --verify \ --verifier etherscan \ --verifier-url https://api-sepolia.abscan.org/api \ --etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD
Deployer: 0x9C073184e74Af6D10DF575e724DC4712D98976aC Deployed to: 0x85717893A18F255285AB48d7bE245ddcD047dEAE Transaction hash: 0x2a4c7c32f26b078d080836b247db3e6c7d0216458a834cfb8362a2ac84e68d9f
--constructor-args
forge create src/Counter.sol:Counter \ --account myKeystore \ --rpc-url https://api.testnet.abs.xyz \ --chain 11124 \ --zksync \ --constructor-args 1000000000000000000 0x9C073184e74Af6D10DF575e724DC4712D98976aC \ --verify \ --verifier etherscan \ --verifier-url https://api-sepolia.abscan.org/api \ --etherscan-api-key TACK2D1RGYX9U7MC31SZWWQ7FCWRYQ96AD
Was this page helpful?