Skip to main content
POST
Simulate a source
Evaluates a source over inputs you supply, with the nodes’ own evaluator: the policy, transform, assertions and output encoding, exactly what a node does after it has read its inputs. Nothing is fetched, signed, charged or recorded. Use it to see what a source does with data you choose, for example a policy’s outcome and fallback when one venue is down or out of band. Give every input of the source exactly one way:
timestampMs is the round timestamp to evaluate at, unix milliseconds on the 100 ms grid; without it the gateway uses its clock. The answer has the shape of a preview without fetches: inputs, then either value or error, and policy for a source that has one. An unknown or missing input, a malformed field or a timestamp off the grid is 400; a body over 4 MiB is 413; a private source is 422. Simulations share the preview’s per-address limit (429) and capacity (503).

Body

application/json

Source and its inputs

inputs
object

Inputs gives what every input of the source returned, by input name.

source
object

Source is a source document, as the source of an execute request.

timestampMs
integer

TimestampMs is the round timestamp the source is evaluated at (unix milliseconds on the 100 ms grid); absent takes the gateway's clock.

Example:

1795000000500

Response

OK

data
object
status
string
Example:

"ok"