routemesh-rpc
Call RouteMesh's unified JSON-RPC endpoint (lb.routeme.sh) for any EVM chainId using a helper script. Use when you need to fetch onchain data (eth_* methods), debug RPC responses, or demo RouteMesh routing for a chain/method.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- routemesh-rpc
- metadata
- { "openclaw": { "homepage": "https://routeme.sh", "requires": { "anyBins": [ "python3", "python" ] }, "primaryEnv": "ROUTEMESH_API_KEY" } }
- description
- Call RouteMesh's unified JSON-RPC endpoint (lb.routeme.sh) for any EVM chainId using a helper script. Use when you need to fetch onchain data (eth_* methods), debug RPC responses, or demo RouteMesh routing for a chain/method.
02 资源文件 1
- 参考文档_meta.json297 B
03 SKILL.md 正文
RouteMesh RPC (JSON-RPC)
This skill standardizes how to call RouteMesh’s unified RPC endpoint:
- Endpoint:
POST https://lb.routeme.sh/rpc/{chainId}/{apiKey} - Body: JSON-RPC 2.0 (
jsonrpc,id,method, optionalparams)
Quick start
Set your API key (recommended):
export ROUTEMESH_API_KEY="rm_...your_key..."
Make a request (example: Ethereum mainnet, eth_blockNumber):
python3 "{baseDir}/scripts/routemesh_rpc.py" \
--chain-id 1 \
--method eth_blockNumber \
--params '[]'
Usage pattern
Prefer calling via the helper script so output stays consistent and you don’t accidentally break JSON encoding.
Script arguments
--chain-id: EVM chain id (string or int, e.g.1,137,42161)--api-key: optional; falls back toROUTEMESH_API_KEY--method: JSON-RPC method (e.g.eth_getBlockByNumber,eth_call)--params: JSON string for params (default[])--url: optional base URL (defaulthttps://lb.routeme.sh)
Common examples
Get the latest block (Polygon):
python3 "{baseDir}/scripts/routemesh_rpc.py" \
--chain-id 137 \
--method eth_getBlockByNumber \
--params '["latest", false]'
Get chain id (any EVM chain):
python3 "{baseDir}/scripts/routemesh_rpc.py" \
--chain-id 8453 \
--method eth_chainId \
--params '[]'
eth_call (Base). data must be hex-encoded calldata:
python3 "{baseDir}/scripts/routemesh_rpc.py" \
--chain-id 8453 \
--method eth_call \
--params '[{"to":"0x0000000000000000000000000000000000000000","data":"0x"}, "latest"]'
Notes / error handling
- RouteMesh returns standard JSON-RPC responses (
resultorerror) and may also use HTTP error codes. - If you get a JSON-RPC
error.code, refer to RouteMesh RPC error code docs in this repo:docs/reference/Reference/get_new-endpoint.md. - Keep
ROUTEMESH_API_KEYout of logs, issues, and commits.
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.