Accessing the Ledger
Learn how you can directly access the Stellar ledger from a zephyr program.
Zephyr's host environment also provides functions to be able to access the ledger maintained by the stellar nodes that live on our server. This grants Zephyr programs first-class access to fast data retrieval and makes up for programs that are omniscient of what's happening in the chain, not only in each ledger close.
There is currently only a limited set of data structures that can be retrieved from the Stellar ledger, we are still developing the others!
Reading contract data entries
You can read contract data entries from the ledger using the following EnvClient
methods:
These functions are quite straightforward and are a good tool for zephyr ingestion programs to fetch directly from the ledger's state, but are even more important for Zephyr Functions which are not in production yet, but will grant powerful on-request access to the ledger.
Last updated