Simulate a deposit to an address the environment holds

POST/sandbox/test-helpers/address/deposits
  • It answers 404 environment_not_sandbox against a live environment.

    A test helper moves money on the simulated chains, and a live environment's money is on real ones.

    Send money from outside, on a simulated chain, to an address the environment holds: an active vault's wallet or a gas station. It answers 201 at once with the Simulation recording it, still running. It is how a sandbox vault is funded before a payout is made out of it, and how a gas station is topped up. The simulation completes once Stridge has credited the address, and caused names the deposit. An amount below the asset's minimum deposit on the network, the chain's own coin as much as a token, is one Stridge never records; its simulation completes with outcome: "not recorded" once a grace has passed.

  • Only an active vault's wallet or a gas station of the environment is paid.

    A universal deposit address is paid with POST /sandbox/test-helpers/uda/deposits, whose levers choose how its deposit settles, and naming one of the environment's active ones here answers 422 parameter_invalid naming address. Any other address on the network answers 404 resource_missing naming address, whoever holds it: another environment's, Stridge's own, or nobody's, a universal deposit address released or switched off and a wallet of a vault that is not active included. An EVM address matches whatever its letter case; any other family's matches exactly as the environment holds it.

Show 3 more details
  • The body is facts only.

    network_id, address and amount are what the payer did: network_id a string of digits as the networks of GET /sandbox/test-helpers/options name it, and the amount a TokenAmount in one of the network's assets. The body is held to its schema: a member it does not declare answers 400 parameter_unknown, a missing one 422 parameter_missing and one outside its schema 422 parameter_invalid, each naming it; an address of blanks alone answers 422 parameter_missing naming address. A network the sandbox does not simulate answers 404 network_not_simulated. An amount that is not positive, in an asset the network does not carry, in other decimals than the asset's on the network, or in an asset Stridge records no deposit of there answers 422 parameter_invalid naming amount. A chain whose gas is paid in a fee token, such as Tempo, has no native coin Stridge records: its tokens are paid, its native asset is refused.

  • The key is required: a request without Idempotency-Key answers 400 header_invalid, as does one longer than 255 characters. The same Idempotency-Key with the same body answers the first 201 and spends nothing; the same key with another body answers 400 idempotency_key_reused, and one still in flight 409 idempotency_key_in_use.

  • Each call spends one from the environment's simulation budget, which options reports. An exhausted budget answers 429 simulation_budget_exhausted with the rate-limit headers and Retry-After.

    While a reset of the environment is running, the call answers 409 environment_resetting. While the sandbox is still being provisioned, before it is ready for its first call, the call answers 409 environment_provisioning, which clears on its own, so a client retries it shortly.

Header parameters

  • X-Stridge-Environmentstring <uuid>optional

    Which environment the request acts inside, on an operation a session and an API key both call. Learn more

    Show full description

    It is required under a person's session, exactly as EnvironmentHeader describes: a session request that omits it answers 400 with environment required, and one naming an environment the caller holds no membership of answers 404.

    An API key names its own environment, so a request made with one omits this header. A key request that sends it answers 400 with environment header not accepted, whatever it names, rather than having the header ignored: a header that is silently ignored hides the integration bug that sent it.

  • Idempotency-Keystringrequired

    A caller-chosen key making this request safe to retry, and required here: an operation that takes this form changes something a blind retry must never change twice. A request without one answers 400 header_invalid naming Idempotency-Key (Idempotency-Key is required). Learn more

    Show full description

    The same key with the same parameters returns the first result, status and body both, and does nothing a second time. So a retry after a dropped connection is safe whether or not the first attempt landed. The parameters are compared as parsed, not as bytes: the query with its names sorted and the JSON body decoded, so member order, spacing and escaping never make two requests differ, while any changed value does.

    What is remembered is the answer of an attempt that began execution, success or failure, a 500 included. A refusal made before execution is not remembered, so a retry with the same key runs afresh once its cause is fixed: a validation error (400, 422), a 409 conflict, a 429, a 403 step_up_required, and any answer carrying Retry-After. An answer whose body is larger than 64 KiB is not remembered either, and an operation may say that its 500 is not; a retry of either runs the request again. What the first attempt did stands, so a create that took a unique value answers that value's conflict on the retry: a payout whose first attempt took its reference_id answers 409 payout_reference_taken.

    The same key with different parameters answers 400 with idempotency key replayed with a different body: a key names one request, and reusing it for another is a client bug rather than a retry. A replay while the first request is still in flight answers 409 at once with a request with this idempotency key is still in flight, and the remedy is to retry once the first has answered.

    Keys are scoped to the environment the request acts inside, and to its reset: one environment's key never answers another environment's request, and a key used before a sandbox reset runs afresh after it.

Request body

  • network_idstringrequired

    The chain the payer sends on, as the networks of GET /sandbox/test-helpers/options name it: a JSON string of digits, such as "8453".

    Show full description

    The Vaults and Gas stations families answer a chain as a number, which is sent here as its decimal string; a JSON number answers 422 parameter_invalid naming network_id.

  • addressstringrequired

    The address paid, in the chain family's own format, as the Vaults or Gas stations family answers it. An EVM address matches whatever its letter case.

  • What is sent, a positive amount. asset names one of the network's assets by its symbol, and decimals are that asset's on the network: one of its tokens, or the chain's own coin where gas is paid in it.

    Show full description

    An asset the network does not carry, other decimals, or the native asset of a chain whose gas is paid in a fee token answers 422 parameter_invalid naming amount.

    • amountstringrequired

      The amount in the asset's base units: digits only, no sign, no exponent and no leading zero ("0" for zero). At most a uint256, the widest on-chain amount.

    • amount_decimalstringrequired

      The exact human amount, amount / 10^decimals: no sign, no exponent, no leading zero before the point other than a lone 0, and no trailing zero after it ("12.5", "0.000001", "3").

    • decimalsinteger <int32>required

      The asset's decimals on its network, which amount_decimal is scaled by.

    • assetstringrequired

      The symbol of the asset the amount is in (USDC), so a fee or a total never mixes units.

Responses

The lever was pulled. The simulation is running, or already further along where the world was quick; a replay of the same idempotent request answers this same body again.

  • idstring <uuid>required

    The simulation's own identifier, the one GET /sandbox/simulations/{simulation_id} reads it back by and a chain transaction's caused_by.run_id names.

  • objectstringrequiredenum simulation

    What this object is, so a payload read on its own says so.

  • environment_idstring <uuid>required

    The sandbox the simulation ran in.

  • livemodebooleanrequiredenum false

    Always false: nothing is simulated in a live environment. It is carried for the reason every environment-scoped object carries it, so a simulation read on its own says which side of the boundary it came from.

  • kindstringrequired

    Which helper was called, one of SimulationKind's values. The set is open: a helper added later answers its own kind, and a client meeting a kind it does not know shows it as the server names it rather than refusing the simulation.

  • presetstring | nullrequired

    The preset the request named, or null where it named none.

Show 9 more fields
  • requestobjectrequired

    The facts and levers the helper was called with, defaults filled in. Its members are the request body of the helper kind names; for payout_release and payout_fail, which take no body, it is { "payout_id": … }.

  • statestringrequiredenum running · observed · completed · failed · expired

    Where the simulation has got to. running is a lever pulled and nothing observed yet; observed is Stridge having recorded the first product object the pull produced; completed is the flow having reached its terminal state.

    Show full description

    The other two are the simulation's own failures rather than the flow's.

    A failure the caller chose is completed, not failed. A deposit whose settlement was chosen to fail, or a payout chosen to fail, is a simulation that did exactly what it was asked, and it completes when the failure has played out. failed is the simulation itself unable to finish: the simulated world refused the pull, or it did not play out in time, and error says which.

    expired is a simulation issued at an older reset_epoch than the environment's current one. A reset withdraws what a simulation in flight had armed, so one caught by a reset never completes; a read waiting on it across the reset is answered expired, and once the reset has destroyed it the simulation answers 404 like every other object of the emptied world.

  • The transaction the lever put on a simulated chain, or null before one exists, and for a simulation the world refused before it put one there.

    • network_idstringrequired
    • hashstringrequired

      The transaction's hash, which the sandbox explorer shows.

  • Every Stridge object the flow produced so far, in the order they appeared.

    • objectstringrequired

      The contract's resource name: deposit, settlement, routing, payout or transfer. The set is open: a client meeting a name it does not know renders the id without a link.

    • idstringrequired

      The object's own identifier, in its family's own format.

    • statusstring | nullrequired

      The object's own status when the simulation last saw it, or null for an object that has none. The object's own read is the authority; this is what the simulation observed.

    • event_typestring | nullrequired

      The most recent webhook event recorded for the object, one of the webhook event types this reference documents, or null while none has been.

  • epochinteger <int32>required

    The environment's reset_epoch when the simulation was created. A reset that moves the environment past it expires the simulation.

  • errorstring | nullrequired

    Why a failed simulation failed, null in every other state: world refused when the simulated world would not carry the pull out, timed out when it did not play out in the time the world allows. A failure the caller chose is never here.

  • outcomestring | nullrequired

    Why a completed simulation stopped short of a settlement, null where the flow ran its course and in every state but completed.

    Show full description

    asset not accepted is a UDA deposit in an asset the address does not accept on the network: Stridge records the deposit and settles none of it, and the simulation completes as soon as the deposit is recorded. not settled is a UDA deposit Stridge recorded and settled nothing of for another reason, such as a sender it suppresses or a payment no route carries, once a grace has passed. not recorded is a deposit below its asset's minimum on the network, which Stridge never recorded. The set is open: a client meeting a value it does not know shows it as the server names it.

  • created_atstring <date-time>required

    RFC3339 UTC timestamp, Z suffixed. When the helper was called. It is the default sort, newest first.

  • updated_atstring <date-time>required

    RFC3339 UTC timestamp, Z suffixed. When state, chain or caused last changed.

Errors

The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.

Request
curl "https://api.stridge.com/v2/sandbox/test-helpers/address/deposits" \
  -X POST \
  -H "Authorization: Bearer $STRIDGE_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "network_id": "8453",
  "address": "0x3f5CE5FBFe3E9af3971dD833D26bA9b5C936f0bE",
  "amount": {
    "amount": "12500000",
    "amount_decimal": "12.5",
    "decimals": 6,
    "asset": "USDC"
  }
}'

Set your secret key as STRIDGE_SECRET_KEY (sent as Authorization: Bearer).

Response201
"id": "5e8a1c34-7b29-4d06-a3f1-9c2e4b6d8a10",
"object": "simulation",
"environment_id": "3f2a6d7e-6b1c-4f2a-9a11-0b53f8d6b2c1",
"livemode": false,
"kind": "uda_deposit",
"preset": "underpaid",
"uda_id": "2d94e610-8f37-4c5b-a1e0-6b73f2905c48",
"network_id": "8453",
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
},
"amount": "25000000",
"settlement": "success"
},
"state": "completed",
"network_id": "8453",
"hash": "0x5b0f3e2a9c71d4e8b6a2f0c3d9e1b7a4c6f8e0d2b4a6c8e0f2d4b6a8c0e2f4d6"
},
"object": "deposit",
"id": "8c2d4a17-3b95-4e02-9f6d-1a7c5e83b204",
"status": "confirmed",
"event_type": "deposit.confirmed"
}
],
"epoch": 0,
"error": null,
"outcome": "asset not accepted",
"created_at": "2026-09-27T09:32:11Z",
"updated_at": "2026-09-27T09:32:14Z"
}