platon-chainlist

SKILL.md

Chainlist Query

Overview

Query https://chainlist.org/rpcs.json for PlatON entries and format the result for the user. Use the bundled TypeScript script for deterministic parsing instead of manually scanning the JSON.

Prerequisites

Require Node.js 24+ because the script uses the built-in fetch and WebSocket APIs.

Workflow

  1. Run scripts/lookup_chain.ts with the user's query text.
  2. Let the script fetch Chainlist directly unless the task provides a local JSON file.
  3. Return the summary view for the requested network.

Commands

Use these forms:

node scripts/lookup_chain.ts dev info
node scripts/lookup_chain.ts testnet info
node scripts/lookup_chain.ts mainnet info
node scripts/lookup_chain.ts main info

Supported network aliases:

  • dev, testnet, devnet
  • mainnet, main

Default Chain Info

Official site:

  • https://www.platon.network

Mainnet defaults:

  • Explorer: https://scan.platon.network/
  • Explorer: https://blockscout.platon.network/
  • HTTP RPC: https://openapi2.platon.network/rpc
  • WebSocket RPC: wss://openapi2.platon.network/ws
  • Chain ID: 210425

Devnet defaults:

  • Explorer: https://devnet3scan.platon.network/
  • Explorer: https://devnet3blockscout.platon.network/
  • HTTP RPC: https://devnet3openapi.platon.network/rpc
  • WebSocket RPC: wss://devnet3openapi.platon.network/ws
  • Chain ID: 20250407

Faucet:

  • Devnet faucet: https://devnet3faucet.platon.network/faucet

Notes

Only the info command is supported.

Validate HTTP RPC endpoints by calling eth_getBlockByNumber. Validate ws / wss RPC endpoints with a WebSocket JSON-RPC request using the same method.

If Chainlist contains multiple dev entries, prefer the one with the largest chainId.

If the user needs machine-readable output, use --format json.

Weekly Installs
2
GitHub Stars
1
First Seen
4 days ago
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2