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
* In Tableland, Validators are the execution unit/actors of the protocol. They have the following responsibilities: - Listen to onchain events to materialize Tableland-compliant SQL queries in a database engine (currently, SQLite by default). - Serve read-queries (e.g., SELECT * FROM foo_69_1) to the external world. - Serve state queries (e.g., list tables, get receipts, etc) to the external world. In the 1.0.0 release of the Tableland Validator API, we've switched to a design first approach! You can now help us improve the API whether it's by making changes to the definition itself or to the code. That way, with time, we can improve the API in general, and expose some of the new features in OAS3. The API includes the following endpoints: - `/health`: Returns OK if the validator considers itself healthy. - `/version`: Returns version information about the validator daemon. - `/query`: Returns the results of a SQL read query against the Tableland network. - `/receipt/{chainId}/{transactionHash}`: Returns the status of a given transaction receipt by hash. - `/tables/{chainId}/{tableId}`: Returns information about a single table, including schema information.
Copy file name to clipboardexpand all lines: internal/router/controllers/apiv1/model_query.go
+2
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ package apiv1
12
12
typeQuerystruct {
13
13
// The SQL read query statement
14
14
Statementstring`json:"statement,omitempty"`
15
+
// The values of query parameters
16
+
Params []interface{} `json:"params,omitempty"`
15
17
// The requested response format: * `objects` - Returns the query results as a JSON array of JSON objects. * `table` - Return the query results as a JSON object with columns and rows properties.
16
18
Formatstring`json:"format,omitempty"`
17
19
// Whether to extract the JSON object from the single property of the surrounding JSON object.
0 commit comments