Skip to main content
11 votes
Accepted

How to build a "super light" bridge based on Beefy?

GRANDPA light clients don't need to download or store all the blocks. In fact, https://github.com/paritytech/smoldot/ is an example of what you're referring to as a super-light client. It only stores ...
rob's user avatar
  • 2,126
6 votes
Accepted

How to Build a Light Client?

Light clients are not explicitly needed for a chain to operate. They can be very useful to compliment a network of full nodes that are preferable in many cases over a full node, especially for end ...
Nuke's user avatar
  • 1,842
5 votes
Accepted

Are light clients connected to a particular full node and stay connected to it throughout?

It works exactly the same way as full nodes. When two full nodes are connected to each other, and one disconnects, the other simply connects to a different full node instead. Same for a light client.
Daan van der Plas's user avatar
3 votes

How to use smoldot in rust application?

If you look at the basic example you can see how to initialize a Smoldot client. Provide the chainspec of the chain you want to sync with and make JSON-RPC requests. But I agree, a native rust ...
Daan van der Plas's user avatar
2 votes
Accepted

Unable to connect smoldot to our chain

On the ChainSpec you provided, I can see that there are no bootnodes set, for substrate-connect to connnect to. E.g. if you see the westend chainspec provided in substrate-connect repository there are ...
Nikos's user avatar
  • 181
2 votes

How can I make my runtime as light client friendly as possible?

In the context of runtime, merkle tree traversal is costly because of the multiple database read/write operations that need to happen. In the context of a light client, each database read is ...
Bernardo Rodrigues's user avatar
2 votes

Smoldot Documentation

Here are a couple of places to look for more information: https://docs.substrate.io/tutorials/integrate-with-tools/substrate-connect/ https://github.com/substrate-developer-hub/substrate-docs/pull/...
Lisa Gunn's user avatar
2 votes

Is there anyway to tell if a transaction was submitted by a light client on a substrate blockchain?

No there is no way to identify the source of a transaction. In general we are trying to make transaction submission as anynomous as possible. Including anything to identify the node type or similar ...
bkchr's user avatar
  • 11.5k
1 vote

Running smoldot light client with substrate-connect

First things first, I am not sure what you mean by "light client instances" in your message. Do you instantiate multiple light client or you mean Multiple chains added to one instance of a ...
Nikos's user avatar
  • 181
1 vote

Substrate-connect for solo-chains

You can connect with a light client to any Substrate-compatible blockchai by using the addChain function. To connect to that chain you need to initialize the light client and then call the addChain ...
Nikos's user avatar
  • 181
1 vote

Parachain support for light clients

As for Smoldot, it can connect to the Relay chains we know today and all its parachains. However, there is a long list of small things that smoldot or high level UIs assume are done a certain way when ...
Daan van der Plas's user avatar
1 vote

Light client key

For creating a new Smoldot client it uses a random value to generate a libp2p public/private key pair (done here). This is done when it makes a new noise key (code) which is later used for the noise ...
Daan van der Plas's user avatar
1 vote

Is there anyway to tell if a transaction was submitted by a light client on a substrate blockchain?

As far as Smoldot; a submitted transaction is validated and then send to full nodes. The full nodes will handle this transaction like any other transaction coming from another peer; validating it, and ...
Daan van der Plas's user avatar
1 vote

Substrate based parachain light client seems to gets connected but ApiPromise is not returned

Your bootnode needs to listen on secure Websocket to catch with substrate connect: Node needs to listen on WS instead of default http --listen-addr /ip4/0.0.0.0/tcp/30333/ws (do no use --port in this ...
bLd's user avatar
  • 182
1 vote

Run Smoldot Light Client

Smoldot light client can run as a Javascript node script. In Smoldot's (Substrate light client) repo (https://github.com/paritytech/smoldot#wasm-light-node) you can find the way to run a light client ...
Nikos's user avatar
  • 181
1 vote

Smoldot Documentation

How to run smoldot repository code and connect with our substrate based chain or substrate node ? cd bin/wasm-node/javascript && npm i && npm start as per README. I don't know if ...
Oliver Tale-Yazdi's user avatar
1 vote

Substrate Node to light Client

The scope of your question is not clear to me. How "light" do you mean? Where should it run? All substrate compatible chains or just Polkadot? Did you have a look at substrate-connect or ...
Oliver Tale-Yazdi's user avatar
1 vote

Framework for light client

Look at how smoldot is constructed. It's specific to polkadot/parachain chains rather than a generic solution though. There's a lot of constraints if your targeting a light client that can run in the ...
Squirrel's user avatar
  • 3,849
1 vote

Which files to change in smoldot to design light client according to our need.?

You are mixing up some stuff. The light client is called light because it only follows consensus. Meaning it isn't able to author any blocks. You still need validators that are able to produce new ...
bkchr's user avatar
  • 11.5k
1 vote

What incentives exist for a full node to provide block headers to a light client?

Currently there are no incentives, but it is something that will need to be thought through, designed, and implemented in time.
Shawn Tabrizi's user avatar
  • 16.1k
1 vote

Substrate connect light client cannot seem to sync blocks

FWIW it is not possible to "integrate the substrate-connect light client extension into our application" - I assume that you mean to integrate substrate-connect into your application. Having ...
Nikos's user avatar
  • 181
1 vote
Accepted

Web3 Foundation - Accountable light clients via BLS multisignature rollup

I have found the slides from zksummit7: https://drive.google.com/file/d/1BrKuqib5msj_M_kiCorSYWBFvP9VlTCg/view?usp=sharing The slides reference the github repo: https://github.com/w3f/apk-proofs Of ...
TauLepton's user avatar
  • 107

Only top scored, non community-wiki answers of a minimum length are eligible