API Reference¶
Base URL production: https://api.garudachain.id
Base URL lokal: http://localhost:4000
Health¶
GET /health
REST v1¶
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /api/v1/chain |
Informasi chain dan nomor blok |
| GET | /api/v1/blocks/latest |
Blok terbaru |
| GET | /api/v1/blocks/:number |
Blok berdasarkan nomor |
| GET | /api/v1/transactions/:hash |
Transaksi dan receipt |
| GET | /api/v1/accounts/:address |
Saldo dan jumlah transaksi |
| GET | /api/v1/validators |
Daftar validator |
| GET | /api/v1/validators/ranking |
Peringkat validator |
| GET | /api/v1/network/contracts |
Alamat kontrak |
| GET | /api/v1/fees/burns |
Statistik burn biaya platform GDC |
| GET | /api/v1/openapi.json |
Spesifikasi OpenAPI |
Garuda Dev (API key prabayar)¶
Dokumentasi lengkap: Garuda Dev
| Method | Endpoint | Auth |
|---|---|---|
| GET | /api/v1/garuda-dev/v1/dashboard |
X-Garuda-Dev-Key |
| GET | /api/v1/garuda-dev/v1/invoices |
X-Garuda-Dev-Key |
| POST | /api/v1/garuda-dev/v1/invoices |
X-Garuda-Dev-Key |
Paket: Bulanan 100 GDC (30 hari), 3 Bulan 270 GDC (90 hari), Tahunan 900 GDC (365 hari). 30% biaya dibakar.
Contoh¶
curl https://api.garudachain.id/api/v1/chain
curl https://api.garudachain.id/api/v1/fees/burns
curl https://api.garudachain.id/api/v1/blocks/latest
curl -H "X-Garuda-Dev-Key: gdk_…" \
https://api.garudachain.id/api/v1/garuda-dev/v1/dashboard
GraphQL¶
POST /graphql
Content-Type: application/json
{"query": "{ chain { blockNumber chainId } }"}
Schema: GET /api/v1/graphql-schema
OpenAPI & Postman¶
- Spec:
docs/openapi.yaml - Collection:
docs/postman/Garuda-Chain-API.postman_collection.json - Explorer ringkas: explorer.garudachain.id/api
Rate Limiting¶
Default: 100 req/min (production API: 200 req/min).
CORS¶
Production API mengizinkan origin: explorer.garudachain.id, garudachain.id.