optakt / flow-dps

Flow Data Provisioning Service
Apache License 2.0
29 stars 13 forks source link

Cadence script execution #515

Open cybercent opened 2 years ago

cybercent commented 2 years ago

Hey @Ullaakut, thanks for working on this.

I was looking to run a Cadence script at an arbitrary block height but found out that’s only possible on a couple of blocks that the execution node has in cache.

Is it possible to run a Cadence script against the DPS or I can only query using the API mentioned in the docs?

awfm9 commented 2 years ago

Hi @cybercent!

That's indeed what the Flow DPS was designed for. Unfortunately, we don't have the access needed to run the Flow DPS at the moment. For past sporks, we would need access to the full protocol and execution states for indexing. For the live spork, we would need access to an execution and an access node.

From my understanding, the Flow team has no plans to run the Flow DPS as a public part of their infrastructure. They are however planning to integrate it into the access node in the future. Best to raise the question with them directly.