List simulations
/ test_helpers/ simulationsList the simulations made in your sandbox, newest first. Filter and sort with filter[], filterOr[] and sort[] on id, kind, state, preset, created_at and updated_at. A reset of the sandbox deletes its simulations. Sandbox keys only.
Query parameters
- filter[]array<string>optional
Filter condition,
field:operator:value; repeat for more (all must match). Operators:eq,neq,gt,gte,lt,lte,between,in,nin,like,ilike,inc,iinc,isnull,notnull. - filterOr[]array<string>optional
Filter condition,
field:operator:value; repeat for more (any may match). - sort[]array<string>optional
Sort field,
field:direction(ascordesc). Defaults tocreated_at:desc. - pageintegeroptionaldefault 1
Page number (default 1).
- limitintegeroptionaldefault 10
Items per page (default 10, max 100).
Responses
A page of simulations.
- successbooleanrequired
- messagestring
- idstring
- objectstringenum simulation
- environment_idstring
The sandbox environment the simulation ran in.
- livemodeboolean
truewhen the API key that made the request acts in a live environment,falsein a sandbox.Show full descriptionShow less
It is on every object a keyed request answers with — the resource itself, each item of a list, and each object inside a list a resource carries — but not on the
success/messageenvelope or on an object nested directly in another (such asdestination,feesorpagination), so a payload read on its own still says which side of the boundary it came from. The two public endpoints answer without it. It is derived from the key at the time of the response and is never stored. - kindstringenum uda_deposit · vault_deposit · payout · payout_release · payout_fail
- presetstring | null
- requestobject
The request body the helper was called with; for a release or fail,
{ "payout_id": "…" }. - statestringenum running · observed · completed · failed · expired
running: the lever is pulled and nothing recorded yet.observed: Stridge recorded the first object it produced.completed: the flow reached its terminal state — a failure you chose still completes.failed: the simulation itself could not finish (seeerror).expired: the sandbox was reset since. The simulated transaction the simulation sent, once there is one.
- epochinteger
The sandbox's reset count when the simulation was made.
- errorstring | null
Why a
failedsimulation stopped:world refused, ortimed outafter 10 minutes. - outcomestring | nullenum asset not accepted · not settled · not recorded · null
Why a
completedsimulation stopped short of a settlement:asset not accepted(a UDA deposit in an asset the UDA does not accept, recorded and settled by nothing),not settled(a UDA deposit Stridge recorded and did not settle for another reason) ornot recorded(a dust deposit Stridge never recorded).nullwhere the flow ran its course. - created_atstring <date-time>
- updated_atstring <date-time>
Page-based pagination metadata returned by the payout, gas-station, routing-policy and simulation lists.
- pageinteger
- limitinteger
- total_itemsinteger
- total_pagesinteger
- has_nextboolean
- has_prevboolean