Deploy A Smart contract on Sonic
This guide covers adding the network to a browser wallet, then deploying a simple contract using Foundry and Hardhat — pick whichever you prefer.
Sonic is fully EVM-compatible, so contracts deploy with standard Ethereum tooling such as Foundry, Hardhat, and Remix. This guide covers adding Sonic to a wallet and deploying a first contract with Foundry and Hardhat through a GetBlock endpoint.
Prerequisites
A wallet holding the native S token for gas (see Add Network to Your Wallet below)
A GetBlock access token from the GetBlock dashboard, used as
<ACCESS-TOKEN>in the endpointhttps://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/Node.js version 20 or later, for Hardhat
A funded deployer address, on Sonic Blaze Testnet for testing (see Testnet Faucets)
Network Details
Chain ID
146 (0x92)
RPC URL
https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/
Currency Symbol
S
Block Explorer
Add Network to Your Wallet
Deploy with Foundry
Deploy with Hardhat
Last updated
Was this helpful?