Skip to content

feat: add sdk query examples app#33

Open
izmiradami wants to merge 2 commits into
shelby:mainfrom
izmiradami:add-sdk-query-examples
Open

feat: add sdk query examples app#33
izmiradami wants to merge 2 commits into
shelby:mainfrom
izmiradami:add-sdk-query-examples

Conversation

@izmiradami

@izmiradami izmiradami commented Jul 24, 2026

Copy link
Copy Markdown

Summary

Adds a new sdk-queries example application under apps/ demonstrating how to use the Shelby SDK for common query operations.

Changes

  • Add new apps/sdk-queries example
  • Demonstrate SDK query patterns
  • Follow repository structure and conventions
  • Pass typecheck and lint checks

Validation

  • ✅ Typecheck passed
  • ✅ Lint passed
  • ✅ Formatting verified

Notes

This PR implements the requested migration of the SDK query example into the apps/ directory.


Note

Low Risk
Documentation and local example scripts only; no changes to shared libraries or production services, though delete-blob can mutate on-chain state when users run it with a private key.

Overview
Adds apps/sdk-queries (@shelby-protocol/query-example) as a set of small tsx scripts that show how to query Shelby via @shelby-protocol/sdk ^0.3.1 on Shelbynet (API key + account address in .env).

Coverage includes account blobs and metadata, blob/activity counts and lists (Hasura-style where), total stored size, placement group slots, and storage providers—each exposed as a pnpm query:* script. delete-blob is the only write path: it signs deleteBlob with SHELBY_ACCOUNT_PRIVATE_KEY.

The root README applications table is updated to link the new app; pnpm-lock picks up the new workspace package.

Reviewed by Cursor Bugbot for commit 87bb0d6. Bugbot is set up for automated code reviews on this repo. Configure here.

izmiradami and others added 2 commits July 21, 2026 11:41
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant