Execute a batch query
Changed onFunctions exactly like the POST version of the endpoint with all parameters passed in the query string instead of the body.
Request
- The document declares no server URL.
- Auth
- none
- or HTTP bearer
Query parameters
Query to execute (e.g. SQL)
Dialect of the query
Number of leading records to skip when returning result (used for pagination)
Maximum number of records to return (used for pagination)
How the output data should be encoded
How to encode the schema of the result
What information to include in the response
Response
query result
Example response
{
"commitment": {
"inputHash": "f162070983d692f648185febe6d6fa607630ae68649f7e6fc45b94680096c06e4fadb",
"outputHash": "f162070983d692f648185febe6d6fa607630ae68649f7e6fc45b94680096c06e4fadb",
"subQueriesHash": "f162070983d692f648185febe6d6fa607630ae68649f7e6fc45b94680096c06e4fadb"
},
"input": {
"datasets": [
{
"alias": "kamu/eth-to-usd",
"blockHash": "f162070983d692f648185febe6d6fa607630ae68649f7e6fc45b94680096c06e4fadb",
"id": "did:odf:fed01969b7413a41f25ba969b7413a41f25ba4016461736574607650ec170632ade10"
}
],
"query": "select event_time, from, to, close from \"kamu/eth-to-usd\""
},
"proof": {
"proofValue": "uAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"verificationMethod": "did:key:z6MkmgVreHBu2ABaD59Jq1J2JneXwzpsUWwEWXS4kLhjb4V4"
},
"subQueries": []
}Changes
- warning
added the new
EcdsaSecp256k1Signature2019enum value to the/response property for the response status - warning
added the new
EcdsaSecp256k1Signature2019enum value to the///response property for the response status
- warning
- breaking
removed the enum value
OdfJsonfrom thequeryrequest parameterschemaFormat - breaking
removed the enum value
OdfYamlfrom thequeryrequest parameterschemaFormat - info
removed the
EcdsaSecp256k1Signature2019enum value from the/response property for the response status - info
removed the
EcdsaSecp256k1Signature2019enum value from the///response property for the response status - info
removed the
OdfJsonenum value from the/response property for the response status - info
removed the
OdfJsonenum value from the/response property for the response status - info
removed the
OdfJsonenum value from the///response property for the response status - info
removed the
OdfYamlenum value from the/response property for the response status - info
removed the
OdfYamlenum value from the/response property for the response status - info
removed the
OdfYamlenum value from the///response property for the response status
- breaking