Skip to content
Back to skills

Call Evm Json Rpc Endpoints

ASecurity

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.

  • 19 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentspythongobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add rondoflow/rondoflow --skill call-evm-json-rpc-endpoints --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Call Evm Json Rpc Endpoints?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Call Evm Json Rpc Endpoints
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-call-evm-json-rpc-endpoints/badge)](https://www.skillsdirectory.com/skills/rondoflow-call-evm-json-rpc-endpoints)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: call-evm-json-rpc-endpoints
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."
category: "Finance & Crypto"
author: community
version: "1.0.0"
icon: coins
---

# 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`, optional `params`)

## Quick start

Set your API key (recommended):

```bash
export ROUTEMESH_API_KEY="rm_...your_key..."
```

Make a request (example: Ethereum mainnet, `eth_blockNumber`):

```bash
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 to `ROUTEMESH_API_KEY`
- `--method`: JSON-RPC method (e.g. `eth_getBlockByNumber`, `eth_call`)
- `--params`: JSON string for params (default `[]`)
- `--url`: optional base URL (default `https://lb.routeme.sh`)

## Common examples

Get the latest block (Polygon):

```bash
python3 "{baseDir}/scripts/routemesh_rpc.py" \
  --chain-id 137 \
  --method eth_getBlockByNumber \
  --params '["latest", false]'
```

Get chain id (any EVM chain):

```bash
python3 "{baseDir}/scripts/routemesh_rpc.py" \
  --chain-id 8453 \
  --method eth_chainId \
  --params '[]'
```

`eth_call` (Base). `data` must be hex-encoded calldata:

```bash
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 (`result` or `error`) 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_KEY` out of logs, issues, and commits.

Files in this skill

  • SKILL.md2.2 KB
  • manifest.json446 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…