NEAR JSON-RPC Skill for Openclaw

A secure, read-only interface for interacting with the NEAR blockchain via JSON-RPC using the uxc protocol.

jolestar
v1.0.0
Mar 19, 2026
0
808
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install near-jsonrpc-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install near-jsonrpc-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is NEAR JSON-RPC Skill?

The NEAR JSON-RPC Skill is a specialized tool designed for AI agents and developers to interface with the NEAR blockchain safely. By leveraging the uxc execution engine and a curated OpenRPC schema, it provides a structured way to query on-chain data without the complexities of manual wallet management or transaction signing. It is a cornerstone for building blockchain-aware applications within the Openclaw Skills ecosystem.

Built with a focus on reliability, this skill defaults to high-performance public RPC providers like FastNear. It bypasses the limitations of non-discoverable RPC endpoints by using a fixed schema URL, ensuring that your AI agent always has a strictly typed map of the NEAR blockchain's read surface. This approach minimizes errors and ensures that data extraction is consistent and high-quality.

NEAR JSON-RPC Skill Use Cases

  • Automating blockchain data monitoring and chain status reports.
  • Querying real-time account states and balances for NEAR protocol users.
  • Retrieving finalized block and chunk data for indexing or analysis.
  • Checking current gas prices and validator sets for network health assessments.
  • Building read-only dashboards and notification systems for NEAR-based dApps.

How NEAR JSON-RPC Skill Works

  1. The skill utilizes the uxc CLI as the underlying execution engine to handle networking and error logic.
  2. It connects to a NEAR RPC provider (defaulting to FastNear) using a curated OpenRPC schema for method discovery.
  3. Users or agents issue commands via a linked CLI alias, such as near-jsonrpc-cli.
  4. The skill validates the requested operation against the read-only guardrails to ensure security.
  5. JSON-formatted blockchain data is returned, structured for easy parsing by automated systems.

NEAR JSON-RPC Skill Setup

To start using this member of the Openclaw Skills library, ensure uxc is installed, then link the skill with the following command:

uxc link near-jsonrpc-cli https://free.rpc.fastnear.com --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/near-jsonrpc-skill/references/near-public.openrpc.json

Verify the installation by checking the help menu:

near-jsonrpc-cli -h

NEAR JSON-RPC Skill Data Schema & Taxonomy

The skill organizes blockchain responses into a consistent JSON envelope. It is recommended to parse stable fields in the following order:

Field Description
ok Boolean indicating if the RPC call succeeded
data The primary payload containing the blockchain state
error Detailed error information if ok is false
kind The type of response or error returned
protocol Versioning information for the RPC response

NEAR JSON-RPC Skill Advanced Features

  • Multi-provider support: Easily override the default endpoint to use private or archival RPC nodes.
  • Positional Parameter Mapping: Uses --input-json to handle complex positional null or default parameters like block_id.
  • Schema-driven Discovery: Utilizes a remote OpenRPC schema to enable full CLI autocomplete and help documentation for all NEAR read methods.
  • Error Guardrails: Built-in logic to identify and avoid deprecated endpoints and unauthorized transaction attempts.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*