Simulate a payout

POST/test_helpers/payouts

Create an ordinary sandbox payout — the same body and checks as POST /transfer/payout — with the fate of its transaction chosen first: success confirms it, fail fails it, and hold keeps it broadcast but unconfirmed until you release or fail it. Requires the key's payout scope, as creating a payout does, and an Idempotency-Key. Spends one unit of the simulation budget. Sandbox keys only.

Header parameters

  • Idempotency-Keystringrequired

    Required on every test helper call that pulls a lever (at most 255 characters; without one the call is answered 400 idempotency key required). Learn more

    Show full description

    A repeat with the same key and body is answered the first response again, refusals included, with Idempotency-Replay: true, and never pulls the lever twice. The same key with another body on the same helper is answered 409 Idempotency key reused with different request; the same key on another helper, or for another payout, is answered 422 idempotency key replayed with a different body. Keys are remembered for 24 hours per sandbox, and a reset of the sandbox starts them afresh.

Request body

  • vault_idstringrequired

    The vault the funds leave from.

  • assetstringrequired

    Asset symbol to send.

  • network_symbolstringrequired

    Network slug (e.g. ethereum, tron, solana, bitcoin, tempo).

  • to_addressstringrequired

    External destination address.

  • reference_idstringrequired

    Your idempotency key — unique per vault.

  • amountstring

    Crypto amount; provide either amount or usd_amount.

  • usd_amountstring

    USD amount; converted to crypto at the current rate.

  • remarkstring

    Free-form note stored on the payout.

  • typestringenum normal · forcefuldefault "normal"

    Payout strategy. normal (default) refills gas when needed and retries until expired_at.

    Show full description

    forceful still refills when needed but is single-attempt — the refill and the transfer are each tried once, with no retry and no expired_at; it fails immediately if either can't complete.

  • expired_atstring <date-time>

    Cutoff after which a non-confirmed payout expires. Defaults to 1 hour from creation; capped at 12 hours ahead. Ignored for forceful payouts.

  • outcomestringrequiredenum success · fail · hold

    success confirms the payout's transaction, fail fails it, and hold leaves it broadcast but unconfirmed until POST /test_helpers/payouts/{payout_id}/release or /fail.

Responses

The lever was pulled; the simulation is answered at once, usually running. Read it back with GET /test_helpers/simulations/{simulation_id}.

  • successbooleanrequired
  • messagestring
  • One test helper call and how far the flow it started has got. A reset of the sandbox expires the simulations made before it.

    • idstring
    • objectstringenum simulation
    • environment_idstring

      The sandbox environment the simulation ran in.

    • livemodeboolean

      true when the API key that made the request acts in a live environment, false in a sandbox.

      Show full description

      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/message envelope or on an object nested directly in another (such as destination, fees or pagination), 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 (see error). 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 failed simulation stopped: world refused, or timed out after 10 minutes.

    • outcomestring | nullenum asset not accepted · not settled · not recorded · null

      Why a completed simulation 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) or not recorded (a dust deposit Stridge never recorded). null where the flow ran its course.

    • created_atstring <date-time>
    • updated_atstring <date-time>
Request
curl "https://api.stridge.com/v1/test_helpers/payouts" \
  -X POST \
  -H "X-API-Key: $STRIDGE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "vault_id": "550e8400-e29b-41d4-a716-446655440001",
  "asset": "USDT",
  "network_symbol": "ethereum",
  "to_address": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B",
  "reference_id": "order-12345",
  "amount": "100.50",
  "outcome": "hold"
}'

Set your api key as STRIDGE_API_KEY (sent as X-API-Key).

Response201
"success": true,
"message": "operation completed successfully",
"id": "0192f4c8-7a1e-7c3b-9d2a-5e6f7a8b9c0d",
"object": "simulation",
"environment_id": "3f2c1d9e-8a47-4b6e-9c11-2d5e7f8a9b04",
"livemode": true,
"kind": "uda_deposit",
"preset": null,
},
"state": "completed",
"network_id": "60",
"hash": "0x9f2c4e1b7a3d5f60718293a4b5c6d7e8f90123456789abcdef0123456789abcd"
},
"livemode": true,
"object": "settlement",
"id": "stl_01J9Z3K4M5N6P7Q8R9S0T1U2V3",
"status": "completed",
"event_type": "uda.settlement.completed"
}
],
"epoch": 0,
"error": null,
"outcome": null,
"created_at": "2026-10-10T12:00:00Z",
"updated_at": "2026-10-10T12:00:07Z"
}
}