AzenKain 51a5af75a3
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 13s
fix docker
2025-07-22 11:31:06 +07:00
2025-07-22 11:26:14 +07:00
2025-07-22 11:26:14 +07:00
2025-07-22 11:26:14 +07:00
2025-07-22 11:26:14 +07:00
2025-07-22 11:31:06 +07:00
2025-07-22 11:26:14 +07:00
2025-07-22 11:26:14 +07:00
2025-07-22 11:26:14 +07:00
2025-07-22 11:26:14 +07:00
2025-07-22 11:26:14 +07:00
2025-07-22 11:26:14 +07:00

Dưới đây là phiên bản đã được chỉnh sửa và hoàn chỉnh hơn của README:


🚀 rpc-check

A simple Bun-powered server to check the availability of Cosmos-style RPC endpoints via JSON-RPC status requests.

📦 Install dependencies

bun install

▶️ Run the server

bun run start

This will start an Express server (default port: 3344) with a /rpc-check POST endpoint.

📮 API Usage

Endpoint: POST /rpc-check Content-Type: application/json

Request body:

{
  "chains": ["namada"]
}

Response:

{
    "namada": [
        {
            "chain": "namada",
            "url": "https://rpc.namada.validatus.com",
            "latency": 710,
            "status": "OK"
        },
        {
            "chain": "namada",
            "url": "https://namada.itudou.xyz",
            "latency": 718,
            "status": "OK"
        },
        {
            "chain": "namada",
            "url": "https://rpc.namada.stakepool.dev.br",
            "latency": null,
            "status": "FAIL",
            "message": "timeout of 5000ms exceeded"
        }
    ]
}

🛠 Built with

  • Bun v1.2.11 — Fast all-in-one JS runtime
  • Express — For routing and JSON handling
  • Axios — For sending JSON-RPC requests
  • CORS — Enabled for all origins

Let me know if bạn cần thêm hướng dẫn Docker hoặc ví dụ cURL test nhé.

Description
A lightweight Node.js + Express server that checks the availability of multiple Cosmos-style RPC endpoints
Readme 44 KiB
Languages
TypeScript 97.1%
Dockerfile 2.9%