Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split RPCs into a separate crate #1910

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from
Draft

Split RPCs into a separate crate #1910

wants to merge 25 commits into from

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Jan 27, 2025

Create a new crate, subxt-rpcs. This crate exposes:

  • methods: legacy and chainHead RPCs are exposed (the same set that were available in subxt), and archive methods will be added here later.
  • client: a set of clients are exposed: jsonrpsee, reconnecting-rpc-client, unstable-light-client and mock-rpc-client. Any of these can be used to call the methods. Subxt makes use of each of these.

Basically, we get all of the low level network communication/serialization/deserialization/typing handled for us, without any of the additional abstraction that Subxt places on top. Useful if you want to interact directly with the RPCs but don't want any other features provided by Subxt.

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