.cursor/skills/0g-chain/SKILL.md
Build on 0G Chain — EVM-compatible AI L1 with sub-second finality. Use when deploying contracts, configuring networks, or building dApps on 0G Chain.
npx skillsauth add fabianferno/caas 0g-chainInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build on 0G Chain, the fastest modular AI blockchain — an EVM-compatible L1 with sub-second finality and 11,000 TPS per shard.
| Parameter | Value |
|-----------|-------|
| Network Name | 0G Mainnet |
| Chain ID | 16661 |
| Token | 0G |
| RPC URL | https://evmrpc.0g.ai |
| Block Explorer | https://chainscan.0g.ai |
| Storage Indexer | https://indexer-storage-turbo.0g.ai |
Mainnet Contract Addresses:
0x62D4144dB0F0a6fBBaeb6296c785C71B3D57C5260xCd01c5Cd953971CE4C2c9bFb95610236a7F414fe0x457aC76B58ffcDc118AABD6DbC63ff9072880870| Parameter | Value |
|-----------|-------|
| Network Name | 0G-Galileo-Testnet |
| Chain ID | 16602 |
| Token | 0G |
| RPC URL | https://evmrpc-testnet.0g.ai |
| Block Explorer | https://chainscan-galileo.0g.ai |
| Faucet | https://faucet.0g.ai |
| Faucet (Google) | https://cloud.google.com/application/web3/faucet/0g/galileo |
Testnet Contract Addresses:
0x22E03a6A89B950F1c82ec5e74F8eCa321a1052960x00A9E9604b0538e06b268Fb297Df333337f9593b0xA97B57b4BdFEA2D0a25e535bd849ad4e6C440A690xE75A073dA5bb7b0eC622170Fd268f35E675a957B// hardhat.config.js
module.exports = {
solidity: {
version: "0.8.19",
settings: {
evmVersion: "cancun",
optimizer: { enabled: true, runs: 200 },
},
},
networks: {
"0g-testnet": {
url: "https://evmrpc-testnet.0g.ai",
chainId: 16602,
accounts: [process.env.PRIVATE_KEY]
},
"0g-mainnet": {
url: "https://evmrpc.0g.ai",
chainId: 16661,
accounts: [process.env.PRIVATE_KEY]
}
},
etherscan: {
apiKey: { "0g-testnet": "placeholder", "0g-mainnet": "placeholder" },
customChains: [
{
network: "0g-testnet",
chainId: 16602,
urls: {
apiURL: "https://chainscan-galileo.0g.ai/open/api",
browserURL: "https://chainscan-galileo.0g.ai",
},
},
{
network: "0g-mainnet",
chainId: 16661,
urls: {
apiURL: "https://chainscan.0g.ai/open/api",
browserURL: "https://chainscan.0g.ai",
},
},
],
},
};
# foundry.toml
[profile.default]
evm_version = "cancun"
[rpc_endpoints]
0g_testnet = "https://evmrpc-testnet.0g.ai"
0g_mainnet = "https://evmrpc.0g.ai"
Deploy with Foundry:
forge create --rpc-url https://evmrpc-testnet.0g.ai \
--private-key $PRIVATE_KEY \
--evm-version cancun \
src/MyContract.sol:MyContract
Verify with Foundry:
forge verify-contract \
--chain-id 16602 \
--verifier custom \
--verifier-api-key "PLACEHOLDER" \
--verifier-url https://chainscan-galileo.0g.ai/open/api \
<CONTRACT_ADDRESS> src/MyContract.sol:MyContract
| Precompile | Address | Purpose |
|------------|---------|---------|
| DASigners | 0x...1000 | Data availability signatures |
| Wrapped0GBase | 0x...1002 | Wrapped 0G token operations |
--evm-version cancun when compilingdevelopment
Guides integration and answers about the Ethereum Name Service using official ENS documentation. Use when working with ENS, .eth names, resolvers, reverse resolution, primary names, text records, multichain ENS, CCIP Read, Name Wrapper, ENSIPs, SIWE with ENS, subgraphs, or ENS DAO governance docs.
development
Integrate 0G decentralized storage using Go/TypeScript SDKs. Use when uploading, downloading, or managing files and key-value data on 0G Storage.
testing
Entry point for the 0G (Zero Gravity) decentralized AI stack. Use when the user mentions 0G, 0g labs, Galileo testnet, 0g chain, 0g storage, 0g compute, 0g DA, INFT, ERC-7857, DePIN, or alignment nodes; route to the focused skill below or official docs.
development
Build INFTs (Intelligent NFTs) with ERC-7857 for tokenizing AI agents. Use when creating, transferring, or integrating AI agent NFTs with encrypted intelligence.