Developer Quickstart
With DogeOS, your favorite tools for building and testing smart contracts just work.
Since DogeOS is bytecode equivalent with the EVM, you’ll just need to point your favorite builder tools at a DogeOS RPC Provider.
If you run into any issues, please reach out in our Discord.
Acquiring Dogecoin
DogeOS uses DOGE as its native currency, which will be needed to pay transaction fees for deploying and interacting with the network.
To start building on DogeOS, we suggest you begin with using our DogeOS Chikyū Testnet. You’ll first need to acquire some testnet DOGE. See the Faucet page for tips on getting test Dogecoin.
For a walkthrough, start with the User Guide’s Setup page.
Network Configuration
DogeOS Chikyū Testnet
Use the table below to configure your Ethereum tools to the DogeOS Chikyū Testnet.
| Network Name | DogeOS Chikyū Testnet |
|---|---|
| RPC URL | https://rpc.testnet.dogeos.com/ |
| Chain ID | 6281971 |
| Currency Symbol | DOGE |
| Block Explorer URL | https://blockscout.testnet.dogeos.com |
Configure your tooling
Hardhat
Modify your Hardhat config file hardhat.config.ts to point at the DogeOS Chikyū Testnet public RPC.
...
const config: HardhatUserConfig = { ... networks: { dogeosTestnet: { url: "https://rpc.testnet.dogeos.com/" || "", accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [], }, },};
...Foundry
To deploy using the DogeOS Chikyū Testnet Public RPC, run:
forge create ... --rpc-url=https://rpc.testnet.dogeos.com/ethers.js
Setting up a DogeOS Chikyū Testnet provider in an ethers script:
import { ethers } from "ethers"
const provider = new ethers.providers.JsonRpcProvider("https://rpc.testnet.dogeos.com/")scaffold-eth
To deploy using Scaffold-eth, you’ll need to point both your Hardhat and React settings at the DogeOS Chikyū Testnet.
Configure Hardhat
In the packages/hardhat/hardhat.config.js file, you’ll add the network and select it as the default network.
...//// Select the network you want to deploy to here://const defaultNetwork = "dogeosTestnet";...module.exports = {... networks: {... dogeosTestnet: { url: "https://rpc.testnet.dogeos.com/", accounts: { mnemonic: mnemonic(), }, }, }...}Be sure to fund the deployment wallet as well! Run yarn generate to create the wallet and yarn account to check its funds. Once funded, run yarn deploy --network dogeosTestnet to deploy on the DogeOS testnet.
Configure the Frontend
To configure your frontend, you need to add the DogeOS Chikyū Testnet as a network option, then select it as default.
To add the network, modify packages/react-app/src/constants.js.
...export const NETWORKS = {... dogeosTestnet: { name: "dogeosTestnet", color: "#e9d0b8", chainId: 6281971, rpcUrl: "https://rpc.testnet.dogeos.com/", blockExplorer: "https://blockscout.testnet.dogeos.com", },...}Next, in packages/react-app/src/App.jsx modify
.../// 📡 What chain are your contracts deployed to?const initialNetwork = NETWORKS.dogeosTestnet;...