Query a lookup service
/lookupSends a lookup request to the specified lookup service. The request body
must contain service (string) and query (any shape defined by the service).
By default the response is a LookupAnswer JSON object containing an array
of output records. When the x-aggregation: yes header is present the
response is binary (application/octet-stream): a varint-encoded outpoint
list followed by aggregated BEEF.
Header Parameters
When "yes", return a binary aggregated BEEF payload instead of
the default JSON LookupAnswer.
Body application/json
Name of the lookup service to query (e.g. ls_ship).
Opaque query object whose shape is defined by the lookup service.
Response
Lookup results — JSON by default, binary when x-aggregation=yes.
output-list — the outputs array contains UTXO records.
freeform — the result field contains arbitrary data.
Freeform result when type is freeform.
Bad request — validation error or missing required field.
Stable machine-readable error code (see specs/errors.md).
Unexpected internal error.
Stable machine-readable error code (see specs/errors.md).