stacks.js icon indicating copy to clipboard operation
stacks.js copied to clipboard

feat: create @stacks/rpc-client package

Open zone117x opened this issue 1 year ago • 1 comments

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 avatar Aug 15 '24 12:08 zone117x

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

vercel[bot] avatar Aug 15 '24 12:08 vercel[bot]

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

smcclellan avatar Oct 16 '24 18:10 smcclellan