Functions

Learn about Mercuyr's API-callable functions.

At this point, you've learned about how to build indexing programs that are executed as the network closes ledgers enabling real-time indexing solutions, but that's not the only feature made possible through the ZephyrVM.

Mercury's cloud execution environment also enables you to create serverless functions inside your already existing indexing programs. These functions serve the functionality of:

  • Building custom simulation endpoints.

  • Building custom ledger entries retrieval endpoints (even with iterations around ledger subsets).

  • Building custom REST-alike APIs for the already-saved events (soon!).

Last updated