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

LightClient: Higher level API for multi-chain usecase #1253

Closed
lexnv opened this issue Nov 10, 2023 · 1 comment
Closed

LightClient: Higher level API for multi-chain usecase #1253

lexnv opened this issue Nov 10, 2023 · 1 comment

Comments

@lexnv
Copy link
Collaborator

lexnv commented Nov 10, 2023

We currently have:

  • high level API for targeting just one chain
  • very low level API for gaining control to the smoldot client

We would like to introduce something in between, that would allow users to easily build a multichain smoldot client without having to understand the low-level API.

For more context: #1238 (comment)

let client: MediumLightClient = MediumLightClient::builder()
.add_chain(
AddChianBuilder::with_identifier( "polkadot" )
.with_spec( include_str!( "../assets/polkadot_chain_spec.json")
)
.add_chain(
AddChainBuilder::with_identifier( "asset-hub")
.relay_chain( "polkadot")
.from_url("ws://127.0.0.1:9944")
)
.build().await;
let polkadot_api = client.for_chain( "polkadot");

@jsdw
Copy link
Collaborator

jsdw commented Mar 21, 2024

Closed by #1475 I think :)

@jsdw jsdw closed this as completed Mar 21, 2024
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

No branches or pull requests

2 participants