Skip to main content

Query the network (POST)

Returns the results of a SQL read query against the Tableland network

Request Body REQUIRED

A JSON containing the statement and additional options

statement string

The SQL read query statement

params object[]

The values of query parameters

format string

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.

extract boolean

Whether to extract the JSON object from the single property of the surrounding JSON object.

unwrap boolean

Whether to unwrap the returned JSON objects from their surrounding array.

Responses
200

Successful operation

Schema OPTIONAL
object
400

Invalid query/statement value

404

Row Not Found

429

Too Many Requests