LasticXYZ / LasticUI

A UI for the Coretime Parachain
https://lastic-ui.vercel.app
GNU Affero General Public License v3.0
12 stars 15 forks source link

research how to find a persons paraId (best to find it in polkadot js) - ONLY READ CODE #171

Open poppyseedDev opened 2 months ago

poppyseedDev commented 2 months ago

When a person purchases a paraId, is this written somewhere in the state, or is there some event that happens, that we can track to mark that change, and if so which event?

Write implementation details for other developers or yourself, this issue requires only searching in substrate. Try to be as through as possible in your desciption.

on polkadot js this functionality looks like: https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frococo-rpc.polkadot.io#/parachains/parathreads

Screenshot 2024-05-20 at 21 10 43 Screenshot 2024-05-20 at 21 11 09 Screenshot 2024-05-20 at 21 11 39

Question is how can we get these two values of individuals paraId.


An example issue resolve could look like this:

To implement it you should interact with the following functions:

It works in the following way:

poppyseedDev commented 1 month ago

@phillux

poppyseedDev commented 1 month ago

I think this is as easy as checking events when you do registrar.reserve on the relay chain, but creating an indexer solely for this is unwanted