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

Read blockchain storage from sideVM (or Fat Contract) #920

Open
Soptq opened this issue Aug 11, 2022 · 1 comment
Open

Read blockchain storage from sideVM (or Fat Contract) #920

Soptq opened this issue Aug 11, 2022 · 1 comment

Comments

@Soptq
Copy link
Contributor

Soptq commented Aug 11, 2022

Currently the sideVM and Fat Contract lack the ability to read blockchain storage. Access control can be implemented so that only partial storage can be accessed.

One workaround is to use http request to directly fetch data through pRuntime's RPC endpoint. However, this is not very standard and could have some negative effects.

@h4x3rotab
Copy link
Contributor

As discussed earlier, we could offer a read API to access the on-chain storage from SideVM. SideVM is a purely non deterministic env. So it should be fine.

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