Repository navigation
Add interactive RPC playground - #12
Open
ibutterbot wants to merge 6 commits into
Open
ibutterbot wants to merge 6 commits into
ibutterbot wants to merge 6 commits into
Conversation
- get_fee_estimate: add required cost param to example - showCurl: always rebuild from current form state - coin ID amount: use text input to preserve BigInt precision - hexToBytes/puzzleHashToAddress: validate hex chars
Four interactive step-by-step walkthroughs: 1. Check a Balance — decode address, find unspent coins, sum balance 2. Trace a Coin's History — follow parent chain through 3 levels 3. Explore a Block — get blockchain state, block record, coin movements 4. Verify a Coin ID — fetch coin, recompute SHA256, compare Each walkthrough uses real mainnet data from blocks around height 8,999,000. Steps are declarative (JSON-driven engine), so adding new walkthroughs requires no UI code changes. UI additions: - Explore/Walkthroughs mode toggle in header - Walkthrough picker with card-based selection - Vertical stepper showing step progress - Context banner explaining each step - Summary cards with computed results (balances, lineage tables, block summaries, verification results) - Navigation (previous/next) between steps All existing explore-mode functionality preserved.
1. Coin verification uses dynamic ID from step 1 input instead of hardcoded hash — works correctly when user edits the lookup coin. 2. Compute summaries (HTML) render properly on revisit via stepper navigation — track which step results are HTML vs plain text. 3. Rate limit countdown targets the correct element in walkthrough mode (wt-countdown) instead of the hidden explore-mode countdown. 4. Walkthrough RPC steps show curl fallback on CORS/fetch failure, matching the explore-mode behavior.
Member
|
bugbot review |
Prevents Copy button from returning stale data from a previous step when the current RPC step failed with a CORS/fetch error.
Member
|
bugbot review |
Split playground/index.html (1,194 lines) into separate files: - style.css (113 lines) — all CSS - utils.js (161 lines) — bech32m, SHA256 coin ID, hex helpers - rpc-catalog.js (173 lines) — METHODS + WALKTHROUGHS data - app.js (618 lines) — DOM wiring, RPC execution, walkthrough engine - index.html (130 lines) — HTML shell only No build step — vanilla script tags in load order. Documentation updates: - README: add 'Try RPC calls in the browser' to routing table - llms.txt: add Interactive Playground to Agent Resources - EVALUATION.md: update 'Query the chain' from Minutes to Seconds - llms-full.txt: regenerated CI: add playground-examples-check job that verifies example coin IDs and block heights still resolve against Coinset API.
Member
|
bugbot review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit b3def25. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 1 of the interactive RPC playground (blind review section 21). Zero-install, browser-based tool for executing Chia RPC calls against Coinset's public nodes.
Features:
Static site — no backend needed.
Note
Low Risk
Static read-only UI calling public Coinset APIs; CI only adds live smoke checks and doc/index updates with no auth or server-side changes.
Overview
Adds a zero-install interactive RPC playground (
playground/) so developers can run Coinset Chia RPCs from the browser against mainnet or testnet11, with no install or keys.Explore mode catalogs RPC methods (with real example params), editable JSON, rate limiting, response truncation, copy/curl helpers, and CORS fallbacks. Walkthroughs guide multi-step flows (balance, coin lineage, blocks, coin ID verification) mixing live RPCs, local utilities, and computed summaries. Client-side helpers cover bech32m address encode/decode and coin ID (SHA-256) computation.
CI gains
playground-examples-check, which hits Coinset with the same sample calls used in the catalog so examples stay valid. README, EVALUATION, llms.txt, and regenerated llms-full.txt now point at the playground and describe read-only chain queries as seconds instead of minutes.Reviewed by Cursor Bugbot for commit b3def25. Bugbot is set up for automated code reviews on this repo. Configure here.