paritytech / polkassembly

Polkassembly now has a new home:
https://github.com/Premiurly/polkassembly
Apache License 2.0
29 stars 37 forks source link

How to get the data of the chain directly? #1126

Closed yashirooooo closed 3 years ago

yashirooooo commented 3 years ago

Excuse me, is there a way to directly get the data of the chain without using the api interface of the chain?

niklabh commented 3 years ago

Substrate based chain data is meant to be queried via rpc calls. Substrate implements its own key value pair data storage technique with rocks db https://substrate.dev/docs/en/knowledgebase/advanced/storage. You can try to query that

yashirooooo commented 3 years ago

Thanks, in the chain-db-open-server project, i saw some database queries and entity class definitions. is this a way to query db directly? are there relevant documents for reference?

yashirooooo commented 3 years ago

After reading it, I found that this is the data you saved through the monitoring block.