Lewati ke isi

Phase 3 — Public Testnet

Jaringan terbuka untuk developer, partner, dan komunitas Garuda Chain.

Spesifikasi

Parameter Nilai
Chain ID 8847 (0x2287)
Konsensus IBFT 2.0 PoS
Validators 5
Block Time 2 detik
Akses Public
Faucet 500 GAT / 24 jam

Domains (Production)

Service URL
RPC https://rpc.testnet.garudachain.id
Explorer https://explorer.testnet.garudachain.id
Faucet https://faucet.testnet.garudachain.id
Docs https://docs.garudachain.id

Quick Start (Lokal)

# 1. Start public testnet
npm run public:up

# 2. Monitor
npm run public:monitor

# 3. Deploy contracts
npm run contracts:deploy:public

# 4. Start explorer dengan env public testnet
cp .env.public-testnet .env
npm run dev:explorer

Public RPC

Tidak memerlukan API key. Rate limit: 300 req/menit.

curl -X POST http://localhost:8555 \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

Faucet

# Via API
curl -X POST http://localhost:4001/claim \
  -H "Content-Type: application/json" \
  -d '{"address":"0xYourWalletAddress"}'

# Via Explorer UI
open http://localhost:3000/faucet

Anti-Sybil Protection

  • 1 claim per wallet per 24 jam
  • Maks 3 claim per IP per 24 jam
  • Rate limit 20 req/menit per IP

MetaMask

{
  "chainId": "0x2287",
  "chainName": "Garuda Chain Public Testnet",
  "nativeCurrency": {
    "name": "Garuda Asset Token",
    "symbol": "GAT",
    "decimals": 18
  },
  "rpcUrls": ["http://localhost:8555"],
  "blockExplorerUrls": ["http://localhost:3000"]
}

Endpoints Lokal

Service Port
Public RPC 8555
Validator 1 8565
Faucet 4001
Explorer 3000

Contract Registry

chain/deployments/public-testnet.json

SDK

import { GarudaClient, GARUDA_PUBLIC_TESTNET_CONFIG } from "@garuda-chain/sdk";

const client = new GarudaClient({
  rpcUrl: GARUDA_PUBLIC_TESTNET_CONFIG.rpcUrls.default.http[0],
  chainId: GARUDA_PUBLIC_TESTNET_CONFIG.chainId,
});

Perbedaan Phase 2 vs Phase 3

Private Testnet Public Testnet
Chain ID 8845 8847
Akses RPC API Key Public
Faucet Restricted Public
Partner Invite-only Terbuka

Next: Phase 4

Validator Program — registrasi validator komunitas dan persiapan mainnet.