Creating Custom Real-Time APIs
Learn how to create your first custom real-time API using our flexible query builder.
Real-time APIs are crucial for applications requiring up-to-the-second data. Follow these steps to set up a real-time API using ZettaBlock.
Step 1: Choose a real-time table
To begin, select a table marked with the ⚡️ symbol, indicating this table has real-time support. Example real-time tables include any Ethereum table, Beacon chain tables, price tables and others.
Step 2: Run the query on the real-time database
Step 3: Choose the refresh interval as "real-time"
Set the refresh interval of your API to "real-time" to ensure continuous data updates. Additionally, select your indexing columns and primary key as usual to optimize API performance and response times.
Updated 6 months ago