Runnable code examples that accompany the Kaia Docs. Each folder is a self-contained project with its own README, dependencies, and .env.example.
git clone https://github.com/kaiachain/kaia-examples
cd kaia-examples/<category>/<example>| Example | Stack | Docs page | Originally from |
|---|---|---|---|
| smart-contracts/foundry-starterkit | Foundry | Kaia Contracts Wizard | ayo-klaytn/kaia-foundry-starterkit |
| smart-contracts/hardhat-utils-private-network | Hardhat, hardhat-deploy | Deploy on a private network | ayo-klaytn/kaia-hardhat-utils-example |
| oracles/pyth-price-feeds-hardhat | Hardhat, Ignition, Pyth | Pyth real-time price | ayo-klaytn/pyth-kaia-hardhat-example |
| indexers/goldsky-usdt-subgraph | Goldsky | Goldsky | gist |
| wallets/safe-api-kit | Node.js, Safe API Kit | Safe API Kit | praveen-kaia/kaia-safe-api-kit |
| dapps/buy-me-a-coffee | Hardhat, Next.js | Buy Me a Coffee | ayo-klaytn/buy-me-a-coffee |
| minidapps/survey-minidapp | Next.js, Hardhat, Semaphore, LIFF | Survey Mini dApp | kjeom/ExampleMiniDapp |
| minidapps/unity-liff | Unity WebGL, LIFF | Convert to LINE LIFF | gist |
| service-chain/value-transfer | Node.js, caver-js | Service chain value transfer | klaytn/servicechain-value-transfer-examples |
- Put it under the category that matches its docs section (
smart-contracts,oracles,indexers,wallets,dapps,minidapps,service-chain, …). - Include a README with a link to the docs page, prerequisites, and run commands.
- Commit
.env.exampleonly — never real keys or.envfiles. - Default to the Kairos testnet (chain ID 1001).
- Link the docs page to
https://github.com/kaiachain/kaia-examples/tree/main/<category>/<example>.