For the Sonic testnet, you can use the Sonic testnet dashboard to obtain an initial amount of S to execute transactions on the testnet.
Here are example configurations for Hardhat to deploy on the Sonic mainnet or testnet:
require("@nomicfoundation/hardhat-toolbox");// Replace this private key with your Sonic account private keyconst SONIC_PRIVATE_KEY
require("@nomicfoundation/hardhat-toolbox");// Replace this private key with your Sonic account private keyconst SONIC_PRIVATE_KEY
To deploy, execute npx hardhat run scripts/deploy.js --network sonic.
Please note that the Sonic testnet is a testing playground designed to showcase technology capabilities. The data stored on the network might eventually be deleted, with or without notice.