sui-jsonrpc-skill

Operate Sui public JSON-RPC through UXC with OpenRPC-driven discovery, mainnet fullnode defaults, and read-only query plus pubsub subscription guardrails.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "sui-jsonrpc-skill" with this command: npx skills add jolestar/sui-jsonrpc-skill

Sui JSON-RPC Skill

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

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

Prerequisites

  • uxc is installed and available in PATH.
  • Network access to https://fullnode.mainnet.sui.io.
  • No API key is required for the public mainnet fullnode in this skill's default flow.

Scope

This skill covers a safe read-first Sui JSON-RPC surface:

  • chain identity and latest checkpoint reads
  • checkpoint lookup
  • object lookup
  • reference gas price reads
  • latest system state reads
  • pubsub subscriptions for events and transaction effects

This skill does not cover:

  • unsafe_* transaction-building methods
  • sui_executeTransactionBlock
  • wallet signing flows
  • custom/private Sui RPC providers with different auth or rate limits

Endpoint And Discovery

This skill targets the public Sui fullnode endpoint:

  • https://fullnode.mainnet.sui.io

For pubsub, use a Sui provider WebSocket endpoint that you have verified actually accepts JSON-RPC subscriptions. Do not assume the public HTTPS fullnode host automatically supports the same wss:// hostname for pubsub.

uxc JSON-RPC discovery depends on OpenRPC or rpc.discover. Sui exposes a discoverable method surface, so help-first flow works directly against the endpoint.

Authentication

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

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

Core Workflow

  1. Use the fixed link command by default:

    • command -v sui-jsonrpc-cli
    • If missing, create it: uxc link sui-jsonrpc-cli https://fullnode.mainnet.sui.io
    • sui-jsonrpc-cli -h
  2. Inspect operation schema first:

    • sui-jsonrpc-cli sui_getLatestCheckpointSequenceNumber -h
    • sui-jsonrpc-cli sui_getCheckpoint -h
    • sui-jsonrpc-cli sui_getObject -h
  3. Prefer read/setup validation before any deeper query:

    • sui-jsonrpc-cli sui_getChainIdentifier
    • sui-jsonrpc-cli sui_getLatestCheckpointSequenceNumber
    • sui-jsonrpc-cli suix_getReferenceGasPrice
  4. Execute with key/value or positional JSON:

    • key/value: sui-jsonrpc-cli sui_getCheckpoint id=254502592
    • positional JSON: sui-jsonrpc-cli sui_getObject '{"object_id":"0x6"}'
  5. Use uxc subscribe start directly for pubsub streams:

    • uxc subscribe start wss://<verified-sui-rpc-host> suix_subscribeEvent '{"params":[{"Package":"0x2"}]}' --sink file:$HOME/.uxc/subscriptions/sui-events.ndjson
    • uxc subscribe start wss://<verified-sui-rpc-host> suix_subscribeTransaction '{"params":[{"FromAddress":"0x..."}]}' --sink file:$HOME/.uxc/subscriptions/sui-transactions.ndjson
    • uxc subscribe status <job_id>
    • uxc subscribe stop <job_id>

Recommended Read Operations

  • sui_getChainIdentifier
  • sui_getLatestCheckpointSequenceNumber
  • sui_getCheckpoint
  • sui_getObject
  • suix_getReferenceGasPrice
  • suix_getLatestSuiSystemState

Recommended Subscription Operations

  • suix_subscribeEvent
  • suix_subscribeTransaction

Guardrails

  • Keep automation on the JSON output envelope; do not use --text.
  • Parse stable fields first: ok, kind, protocol, data, error.
  • Stay on the public read-only method surface by default.
  • Do not call any unsafe_* methods through this skill without explicit follow-up design and review.
  • Do not use this skill for write/sign/submit flows; those need separate wallet/auth guidance.
  • Use uxc subscribe start for pubsub methods; the fixed sui-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 Sui pubsub host, confirm the specific provider actually exposes JSON-RPC WebSocket subscriptions; public HTTPS endpoints do not guarantee a matching wss:// endpoint.
  • Public RPC availability and rate limits can change over time; if discovery or execution starts failing, re-check the endpoint before assuming a uxc bug.
  • sui-jsonrpc-cli <operation> ... is equivalent to uxc https://fullnode.mainnet.sui.io <operation> ....

References

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

三色人格陪伴

恋人、损友、死敌三种陪伴模式。记忆完全隔离不串档,一秒切换情绪状态,承包你所有治愈、解压与情绪拉扯需求。

Registry SourceRecently Updated
General

Zero Api Key Web Search

OpenClaw skill for source-backed web search, page reading, and evidence-aware claim checking. No API keys required by default; optional providers can be enab...

Registry SourceRecently Updated
General

Novel Writer V3.2 - 小说写作引擎

专业小说写作引擎V3.2,支持短篇(3章)到超长篇(500万字)。内置AI味量化检测、四层质检、伏笔管理、角色状态追踪、断点续传。 自动根据字数裁剪流程:短篇模式(<10章)/ 中篇模式(10-50章)/ 长篇模式(50章+)。 触发场景:写小说、小说大纲、小说创作、网文写作、长篇小说、百万字小说、章节规划、 角...

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for bank trading desks. Triggers: "生成晨报","股市晨报","今日股市","港股晨報" 推送:微信個人 + 飛書群 | 數據:騰訊財經+stcn.com+格隆匯+實時搜索

Registry SourceRecently Updated