To deploy a smart contract, ensure that you have sufficient gas fees on the Abstract Testnet. You can acquire testnet gas:
- Faucet: Get free gas from the Abstract Testnet Faucet.
- Bridge: Transfer funds from the Sepolia testnet using the Official Bridge.
You can deploy from a local terminal (like Windows/Ubuntu) or through a Virtual IDE such as GitHub Codespaces.
There are two ways to install the necessary tools. Choose one of the following methods:
curl -sSL -o abstract.sh https://raw.githubusercontent.com/Aethereal-Collective/abstract/refs/heads/main/abstract.sh && chmod +x abstract.sh && ./abstract.sh
wget https://raw.githubusercontent.com/Aethereal-Collective/abstract/refs/heads/main/abstract.sh && chmod +x abstract.sh && ./abstract.sh
While running the script, you may encounter a prompt asking for the type of project to create:
? What do you want to do? …
Create a JavaScript project
▸ Create a TypeScript project
Create a TypeScript project (with Viem)
Create an empty hardhat.config.js
Quit
- Choose "Create a TypeScript project"
- Press Enter three times to finalize the setup.