You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation specifies that the API functions can't write to the DB. Why is that, and is there a workaround?
I really need to be able to write to the table via an API function
Proposed solution
No response
The text was updated successfully, but these errors were encountered:
Hi, the reason for that is that the database in ponder is not stateful in the sense that it is completely derived from on-chain state (necessary for reorg handling). Every time a new deployment happens it starts from scratch. So, the only place where the database can be written to is an event handler.
Keep your eye out for 0.9, we are planning on providing an example that shows how to achieve a similar result.
Problem / use case
The documentation specifies that the API functions can't write to the DB. Why is that, and is there a workaround?
I really need to be able to write to the table via an API function
Proposed solution
No response
The text was updated successfully, but these errors were encountered: