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

Reading old chain state + example usage #1092

Closed
wants to merge 2 commits into from

Conversation

Lezek123
Copy link
Contributor

yarn workspace @joystream/js-examples build
yarn workspace @joystream/js-examples run-example readOldState

We can also provide endpoint and block number (which was before Contantinopole => Nicaea upgrade in that case)

yarn workspace @joystream/js-examples run-example readOldState wss://rome-rpc-endpoint.joystream.org:9944/ 1500000
yarn workspace @joystream/js-examples run-example readOldState ws://localhost:3000/ 50

Feedback about more interesting cases of querying old chain data that could be tested with this script will be much appreciated.

@Lezek123
Copy link
Contributor Author

This is no longer relevant since the much newer version of @polkadot/api we're using now exposes functionality like api.at (polkadot-js/api#3871) for this purpose.

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