The goal of this protocol is to provide incentivizing fast SQL query execution on public datasets that are kept always up to date, including the Space And Time schemas for blockchain data. It is expected that most participants will directly run SXTChain nodes and compete on query performance, but it is also possible to use alternative backend technologies, provided they adhere to the same schemas.
Validators assess the accuracy of SQL computation results, data freshness, and speed to respond. Validators are expected to know the current updated state of all accessible datasets to ensure they can test correctness of data returned. Validators will randomly register as customers and query all providers with the same sqlText to get direct comparison ability.
There are two options when connecting to the SXT Environment: query individual, participating SXTChain Node providers, who represent a specific data set (say, Ethereum, or zkSync, or Bitcoin, etc.), OR, connect to the SXT Data Warehouse DePIN gateway, which provides a single unified view of ALL SXTChain data data, however may be a second or two behind the SXTChain data, and as a permissioned DePIN requires special access and setup.
Currently the SXTChain is in Testnet, with expected Mainnet in April of 2025. This is future-facing until the nodes are available on mainnet.
graph LR;
c[Requesting Client];
n1[SXTChain Node 1];
n2[SXTChain Node 2];
n3[SXTChain Node 3];
nn[SXTChain Node ...N];
subgraph wn1[DBForest API Wrapper]
n1
end
subgraph sxtchain[SXTChain Blockchain]
wn1<-->n2<-->n3<-->nn
end
c<-->wn1
(Are these endpoints? - I wrote them as if they were)
-
sqlText(string, required): The full SQL text to execute- The SQL text must be less than 10,000 characters.
- The SQL text must be a valid SQL statement.
- The SQL text must not contain any UPDATE, INSERT or DELETE statements
-
walletAddress(string, required): The SXTChain (ECDSA) wallet- used to validate the signedSqlText and pay for gas.
-
signedSqlText(string, required): the signed sqlText, signed by the user's wallet. Must be verifiable by the walletAddress and match exactly the sqlText.RETURNS: data output from sqlText, as JSON
Currently available in full, however permissioned network with limited operators.
graph LR;
c[Requesting Client];
gw[SXTDB DePIN Gateway];
n1[SXTDB DePIN Cluster1];
n2[SXTDB DePIN Cluster2];
n3[SXTDB DePIN Cluster3];
nn[SXTDB DePIN Cluster...N];
subgraph dwh[SXT-Data Warehouse]
gw<-->n1
gw<-->n2
gw<-->n3
gw<-->nn
end
subgraph wn1[DBForest API Wrapper]
dwh
end
c<-->wn1
-
sqlText(string, required): The full SQL text to execute- The SQL text must be less than 10,000 characters.
- The SQL text must be a valid SQL statement.
- The SQL text must not contain any UPDATE, INSERT or DELETE statements
-
apiKey(string, required): the user's Space and Time DWH API Key. For instructions on how to generate, see: https://docs.spaceandtime.io/reference/about-rest-apisRETURNS: data output from sqlText, as JSON
-
Response Times:
- Simple
SELECT * FROM SXTLabs.Calendar Limit 1;statements must return within 2Second
- Simple
- SQL Text:
- The SQL text must be less than 10,000 characters.
- The SQL text must be a valid SQL statement.
- The SQL text must not contain any UPDATE, INSERT or DELETE statements, except for certain defined tables.