Skip to content

Conversation

zone117x
Copy link
Contributor

@zone117x zone117x commented Aug 15, 2024

The RPC schema is being removed from the stacks-blockchain-api codebase. This means the @stacks/blockchain-api-client library will no longer include auto-generated code for those endpoints. See more details over at that repo: PR, client migration notes.

This PR creates a new library @stacks/rpc-client which generates a client library using the canonical RPC schema at
https://github.com/stacks-network/stacks-core/blob/master/docs/rpc/openapi.yaml

The library http request types are generated using openapi-typescript, and depends on openapi-fetch.

Some glue code is included to easily use the existing StacksNetwork objects and middleware, and also to export some common types.

@zone117x zone117x requested a review from janniks August 15, 2024 12:40
Copy link

vercel bot commented Aug 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stacksjs-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2024 0:40am

@smcclellan
Copy link
Contributor

This is going into its own repo and will be closed when that's ready. /cc @janniks

@smcclellan smcclellan marked this pull request as draft October 16, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants