← Back to Skills Marketplace
jolestar

Ethereum JSON-RPC Skill

by jolestar · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
200
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install ethereum-jsonrpc-skill
Description
Operate Ethereum execution JSON-RPC through UXC with the official execution OpenRPC schema, public EVM read methods, and eth_subscribe pubsub guardrails.
README (SKILL.md)

Ethereum JSON-RPC Skill

Use this skill to run Ethereum execution JSON-RPC operations through uxc + JSON-RPC.

Reuse the uxc skill for shared execution, auth, and error-handling guidance.

Prerequisites

  • uxc is installed and available in PATH.
  • Network access to a compatible Ethereum execution JSON-RPC provider.
  • Access to the official execution OpenRPC schema URL:
    • https://raw.githubusercontent.com/ethereum/execution-apis/assembled-spec/refs-openrpc.json

Scope

This skill covers a safe read-first Ethereum execution surface:

  • chain identity and public state reads
  • block, balance, logs, and call-based state reads
  • eth_subscribe pubsub subscriptions for new heads, logs, and pending transactions

This skill does not cover:

  • eth_sendRawTransaction
  • personal_*, admin_*, debug_*, engine_*, txpool_*
  • wallet signing flows
  • private/authenticated RPC providers with custom auth models

Endpoint And Schema

This skill defaults to a public read provider:

  • HTTPS RPC: https://ethereum-rpc.publicnode.com

The operation surface comes from the official Ethereum execution OpenRPC schema:

  • https://raw.githubusercontent.com/ethereum/execution-apis/assembled-spec/refs-openrpc.json

uxc JSON-RPC discovery normally depends on OpenRPC or rpc.discover. Ethereum RPC providers often do not expose discovery directly, so this skill uses a fixed --schema-url link and request flow.

The official execution OpenRPC document is strong enough for normal request/response methods, but it does not currently expose pubsub methods such as eth_subscribe. Use the schema-backed link for reads, and use uxc subscribe start directly for subscriptions.

For subscriptions, use a WebSocket Ethereum RPC provider that you have verified actually accepts eth_subscribe. Do not assume a public HTTPS host automatically guarantees the same wss:// host is stable for pubsub.

Authentication

The default public read provider used by this skill does not require authentication.

If a user later points the same workflow at a private Ethereum RPC provider, verify its auth model first before reusing this skill unchanged.

Core Workflow

  1. Use the fixed link command by default:

    • command -v ethereum-jsonrpc-cli
    • If missing, create it: uxc link ethereum-jsonrpc-cli https://ethereum-rpc.publicnode.com --schema-url https://raw.githubusercontent.com/ethereum/execution-apis/assembled-spec/refs-openrpc.json
    • ethereum-jsonrpc-cli -h
  2. Inspect operation schema first:

    • ethereum-jsonrpc-cli eth_blockNumber -h
    • ethereum-jsonrpc-cli eth_getBlockByNumber -h
    • ethereum-jsonrpc-cli eth_getBalance -h
  3. Prefer chain and balance/block reads before deeper state queries:

    • ethereum-jsonrpc-cli eth_chainId
    • ethereum-jsonrpc-cli eth_blockNumber
    • ethereum-jsonrpc-cli eth_getBalance Address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 Block=latest
  4. Execute with key/value or positional JSON:

    • key/value: ethereum-jsonrpc-cli eth_getBalance Address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 Block=latest
    • positional JSON: ethereum-jsonrpc-cli eth_getBlockByNumber '["latest", false]'
    • nested positional JSON: ethereum-jsonrpc-cli eth_call '[{"to":"0xA0b86991c6218b36c1d19d4a2e9eb0ce3606eb48","data":"0x313ce567"},"latest"]'
  5. Use uxc subscribe start directly for pubsub streams:

    • uxc subscribe start wss://\x3Cverified-ethereum-rpc-host> eth_subscribe '{"params":["newHeads"]}' --sink file:$HOME/.uxc/subscriptions/eth-new-heads.ndjson
    • uxc subscribe start wss://\x3Cverified-ethereum-rpc-host> eth_subscribe '{"params":["logs",{"address":"0xA0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}]}' --sink file:$HOME/.uxc/subscriptions/eth-logs.ndjson
    • uxc subscribe status \x3Cjob_id>
    • uxc subscribe stop \x3Cjob_id>

Recommended Read Operations

  • net_version
  • eth_chainId
  • eth_blockNumber
  • eth_getBlockByNumber
  • eth_getBalance
  • eth_getLogs
  • eth_call

Recommended Subscription Operations

  • eth_subscribe

Subscription params[0] modes that are usually most useful:

  • newHeads
  • logs
  • newPendingTransactions

Guardrails

  • Keep automation on the JSON output envelope; do not use --text.
  • Parse stable fields first: ok, kind, protocol, data, error.
  • Stay on read-only methods and eth_subscribe by default.
  • The official execution OpenRPC schema drives read help and request execution, but it does not cover eth_subscribe; treat subscriptions as runtime-only flows, not schema-discovered operations.
  • Do not call write/admin/debug/engine methods through this skill without explicit follow-up design and review.
  • Use uxc subscribe start for pubsub methods; the fixed ethereum-jsonrpc-cli link is for normal request/response methods.
  • Subscription jobs should always write to a sink file so events can be inspected and replayed safely.
  • Before documenting or automating a public Ethereum pubsub host, confirm the specific provider actually exposes WebSocket JSON-RPC subscriptions; public HTTPS endpoints do not guarantee a matching wss:// endpoint.
  • ethereum-jsonrpc-cli \x3Coperation> ... is equivalent to uxc https://ethereum-rpc.publicnode.com --schema-url \x3Cethereum_execution_openrpc_schema> \x3Coperation> ....

References

Usage Guidance
This skill appears to do what it says: read-only Ethereum JSON-RPC operations and pubsub via uxc. Before installing, confirm you have uxc (the SKILL.md requires it but the registry metadata does not list it). Understand that starting subscriptions will write files to $HOME/.uxc/subscriptions (inspect those files for sensitive data). If you change the target to a private RPC provider, do not pass credentials to this skill unless you audit how uxc or your environment stores/uses them. Finally, verify you trust the default public RPC (https://ethereum-rpc.publicnode.com) or replace it with a provider you control.
Capability Analysis
Type: OpenClaw Skill Name: ethereum-jsonrpc-skill Version: 1.0.0 The ethereum-jsonrpc-skill is a well-documented tool for performing read-only Ethereum blockchain queries and managing subscriptions via the uxc utility. It includes explicit guardrails in SKILL.md to prevent the agent from executing sensitive or state-changing operations like eth_sendRawTransaction or administrative calls. The skill uses the official Ethereum OpenRPC schema from GitHub and defaults to a public RPC provider (ethereum-rpc.publicnode.com), showing no signs of data exfiltration, malicious execution, or prompt injection.
Capability Assessment
Purpose & Capability
Name/description match the instructions: the skill is a read-first Ethereum JSON-RPC helper that uses uxc and an OpenRPC schema. However, the registry metadata lists no required binaries while the SKILL.md explicitly requires uxc (and an ethereum-jsonrpc-cli link). This is a metadata omission rather than a functional mismatch, but it should be corrected so consumers know the runtime dependency.
Instruction Scope
SKILL.md stays within the declared read-first scope: schema inspection, read methods, and eth_subscribe examples. It explicitly forbids write/admin/engine methods. It instructs creating a link with uxc, running request/response commands, and starting subscriptions that write to sink files under $HOME/.uxc/subscriptions — file writes are expected for subscription sinks but are noted as a side-effect the user should expect.
Install Mechanism
There is no install spec (instruction-only), which is low-risk. The included scripts/validate.sh are local validation tooling; no remote downloads or extract/install steps are present.
Credentials
The skill requests no credentials or environment variables and defaults to a public read provider (https://ethereum-rpc.publicnode.com). That aligns with its read-only purpose. Note: if you point the skill at a private RPC, you must supply and manage any auth separately — the skill does not declare or request those credentials.
Persistence & Privilege
always is false and autonomous invocation is allowed (platform default). The skill does not request permanent inclusion, nor does it modify other skills or system-wide settings. Subscriptions write sink files under the user's home directory, which is expected behavior for storing events.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ethereum-jsonrpc-skill
  3. After installation, invoke the skill by name or use /ethereum-jsonrpc-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of ethereum-jsonrpc-skill. - Provides safe Ethereum execution JSON-RPC operations via UXC, using the official OpenRPC schema. - Supports public, read-only EVM methods including chain info, state reads, block, balance, log retrieval, and eth_subscribe with guardrails. - Uses https://ethereum-rpc.publicnode.com by default for HTTPS requests; recommends verified WebSocket for subscriptions. - Delivers guidance for linking, schema inspection, and command-line usage prioritizing read operations. - Explicitly excludes transaction sending, admin/debug/engine operations, and assumes no special authentication for default provider. - Emphasizes safe workflow and output parsing, with best practices for handling pubsub and method guardrails.
Metadata
Slug ethereum-jsonrpc-skill
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Ethereum JSON-RPC Skill?

Operate Ethereum execution JSON-RPC through UXC with the official execution OpenRPC schema, public EVM read methods, and eth_subscribe pubsub guardrails. It is an AI Agent Skill for Claude Code / OpenClaw, with 200 downloads so far.

How do I install Ethereum JSON-RPC Skill?

Run "/install ethereum-jsonrpc-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Ethereum JSON-RPC Skill free?

Yes, Ethereum JSON-RPC Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Ethereum JSON-RPC Skill support?

Ethereum JSON-RPC Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Ethereum JSON-RPC Skill?

It is built and maintained by jolestar (@jolestar); the current version is v1.0.0.

💬 Comments