{"topic":"ship","title":"Ship","summary":"End-to-end path from idea to production on 0G Chain.","markdownUrl":"https://www.0gskills.com/ship/SKILL.md","apiUrl":"https://www.0gskills.com/api/skill?topic=ship&format=json","sections":[{"heading":"When to fetch this skill first","content":"Use this skill when you need a **ordered playbook**: contracts, storage, compute, deployment, verification, and UX — without skipping security or testing.\n\n---"},{"heading":"0G stack in one paragraph","content":"0G provides an **EVM-compatible chain** (deploy with familiar tooling), plus **decentralized storage** (SDKs / indexer) and **AI compute** (inference, fine-tuning). Validators tie into **Ethereum via Symbiotic restaking** (see [Protocol](../protocol/SKILL.md)). Treat 0G as: **execution + data + ML services**, not “just another EVM.”\n\n---"},{"heading":"Phase 1 — Design","content":"1. **Choose what lives onchain:** state, access control, value flows, events for indexers.\n2. **Choose what lives in 0G Storage:** large blobs, datasets, model artifacts, user content.\n3. **Choose what uses 0G Compute:** inference jobs, fine-tuning pipelines (offchain workers + onchain settlement as applicable).\n4. **Threat model:** keys, oracles, upgradeability, cross-chain assumptions — [Security](../security/SKILL.md).\n\n---"},{"heading":"Phase 2 — Build (contracts)","content":"- Compiler: target **`cancun`** EVM version for compatibility (see [official deploy guide](https://docs.0g.ai/developer-hub/building-on-0g/contracts-on-0g/deploy-contracts)).\n- Tooling: **Foundry**, **Hardhat**, or **Remix** — same as Ethereum.\n- **Precompiles:** understand DA signer and wrapped base precompiles before relying on them ([precompiles overview](https://docs.0g.ai/developer-hub/building-on-0g/contracts-on-0g/precompiles/precompiles-overview)).\n\nDeep dives: [Standards](../standards/SKILL.md), [Testing](../testing/SKILL.md), [Security](../security/SKILL.md).\n\n---"},{"heading":"Phase 3 — Build (storage & compute)","content":"- **Storage TypeScript SDK:** `@0gfoundation/0g-ts-sdk` + `ethers` ([Storage SDK docs](https://docs.0g.ai/developer-hub/building-on-0g/storage/sdk)).\n- **Storage Go SDK:** `github.com/0gfoundation/0g-storage-client`.\n- **Starter kits:** [TS starter](https://github.com/0gfoundation/0g-storage-ts-starter-kit), [Go starter](https://github.com/0gfoundation/0g-storage-go-starter-kit).\n- **Compute:** follow [Inference](https://docs.0g.ai/developer-hub/building-on-0g/compute-network/inference) and related compute docs for integration patterns.\n\n---"},{"heading":"Phase 4 — Configure networks","content":"| Network | Chain ID | Public RPC (dev) | Explorer |\n| --- | --- | --- | --- |\n| Galileo testnet | `16602` | `https://evmrpc-testnet.0g.ai` | `https://chainscan-galileo.0g.ai` |\n| Aristotle mainnet | `16661` | `https://evmrpc.0g.ai` | `https://chainscan.0g.ai` |\n\nUse **third-party RPCs** for production (QuickNode, Ankr, dRPC, etc.) — see [Testnet overview](https://docs.0g.ai/developer-hub/testnet/testnet-overview) and [Tools](../tools/SKILL.md).\n\nFund testnet wallets via [faucet.0g.ai](https://faucet.0g.ai) (limits apply).\n\n---"},{"heading":"Phase 5 — Deploy & verify","content":"- Example **Foundry** deploy:\n\n```bash\nforge create --rpc-url https://evmrpc-testnet.0g.ai \\\n  --private-key \"$PRIVATE_KEY\" \\\n  --evm-version cancun \\\n  src/MyContract.sol:MyContract\n```\n\n- Verify on **Chainscan** using explorer API URLs from [deploy contracts](https://docs.0g.ai/developer-hub/building-on-0g/contracts-on-0g/deploy-contracts).\n\nAddresses for system contracts **change on testnet** — see [Contract Addresses](../contract-addresses/SKILL.md) and always confirm in docs.\n\n---"},{"heading":"Phase 6 — Frontend & agent UX","content":"Follow [Frontend UX](../frontend-ux/SKILL.md) and [Frontend Playbook](../frontend-playbook/SKILL.md): chain switching, pending states, error surfacing, and secure key handling.\n\n---"},{"heading":"Phase 7 — QA, audit, launch","content":"1. [QA](../qa/SKILL.md) — separate reviewer pass.\n2. [Audit](../audit/SKILL.md) — structured review for non-trivial value at risk.\n3. [Indexing](../indexing/SKILL.md) — ensure subgraphs/indexers match deployed events.\n\n---"},{"heading":"How to fetch this skill","content":"```bash\ncurl -sSL https://0gskills.com/ship/SKILL.md\n```\n\n```javascript\nawait fetch(\"https://0gskills.com/ship/SKILL.md\").then((r) => r.text());\n```\n\n---"},{"heading":"Next skills","content":"- [Why ZeroG](../why-zerog/SKILL.md) — product rationale.\n- [Tools](../tools/SKILL.md) — concrete toolchain map.\n- [Orchestration](../orchestration/SKILL.md) — multi-step agent patterns.\n\nMIT License — contributions welcome."}],"links":[],"depth":0}