Read one deposit
/ deposits/ {id}Return one deposit whole: the transaction that carried it, the asset it was denominated in, where it came from and where it landed. It is the same shape the list answers with, so a detail view opened from a row renders without a second vocabulary.
A deposit belonging to another environment answers
404resource_missing, identical to an identifier that exists nowhere. The scope is not a filter applied after the object was found: a deposit outside it does not exist for the request, and answering403would confirm that the identifier does.A gas-station-originated deposit answers
404here for the same reason it is absent from the list: it is not on this surface at all.A resetting sandbox.
While a sandbox's reset runs it answers
409environment_resetting: nothing is served for a sandbox until its reset finishes.
Parameters
Path
- idstring <uuid>required
The deposit being addressed. A value that is not a UUID answers
422parameter_invalidnamingid.
Headers
- 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 descriptionShow less
It is required under a person's session, exactly as
EnvironmentHeaderdescribes: a session request that omits it answers400withenvironment required, and one naming an environment the caller holds no membership of answers404.An API key names its own environment, so a request made with one omits this header. A key request that sends it answers
400withenvironment 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.
Responses
The deposit resolved.
- idstring <uuid>required
The deposit's opaque identifier.
- objectstringrequired
The object's type, always
deposit. - environment_idstring <uuid>required
The environment this deposit is scoped to. It is carried on the object rather than implied by the request, so the scope a client rendered is the scope the server answered in.
- livemodebooleanrequired
truewhenenvironment_idnames aliveenvironment andfalsein a sandbox. It is carried on the object itself, so a payload read on its own, a logged response or a webhook body, still says which side of the boundary it came from. - ownerstring | nullrequired
Who the receiving address was assigned to, as the caller named them at assignment. It is the caller's own identifier for a customer rather than anything this API mints, so it is free text.
Show full descriptionShow less
nullon an address no caller named: one assigned to nobody, or the environment's vault or gas station. - tx_idstringrequired
The on-chain transaction hash that carried the deposit, or empty where the chain reported the credit without one.
Show 15 more fieldsShow fewer fields
- network_idinteger <int32>required
The chain the deposit landed on, as the chain's own numeric identifier. It is not a UUID and it addresses nothing in this API: a client resolves it against the network catalogue.
- network_symbolstringrequired
The chain's ticker, or empty where the network catalogue holds no symbol for it. A client renders the fallback rather than the empty string.
- symbolstringrequired
The asset's ticker, or empty where the token registry does not recognise the contract. An unrecognised asset is still a real deposit, which is why it is reported rather than dropped.
- assetstringrequired
The asset's name, or empty alongside an unrecognised
symbol. - contract_addressstringrequired
The asset's contract on that chain, or the chain's native-asset sentinel where the deposit was the chain's own coin.
- decimalsinteger <int32>required
How many decimal places the asset carries, which is what scales
balance.rawtobalance.amount.amount_decimal. - is_token_transferbooleanrequired
Whether the deposit moved a token rather than the chain's native coin.
- from_addressstringrequired
Where the money came from, or empty where the chain reported no sender (a coinbase or a consolidated input).
- from_wallet_categorystringrequiredenum external · vault · gas_station · uda
What kind of address sent it.
externalis an address this API version does not manage: one outside Stridge, or one of the environment's own addresses of a kind this version has no surface for. Every other value names a kind it does manage.Show full descriptionShow less
A deposit sent by a
gas_stationnever appears on this surface. - to_addressstringrequired
The address the deposit was credited to.
- to_wallet_categorystringrequiredenum vault · gas_station · uda
What kind of address received it. Always a kind this API version manages: a deposit is only observed on an address Stridge watches, and one received by an address of a kind this version has no surface for never appears on it.
- block_numberstringrequired
The block the transaction was included in, as a decimal string because block heights on some chains exceed what a double represents exactly. Empty where the chain reported no height.
- scanner_urlstringrequired
A block-explorer link for the transaction, or empty where no explorer is known for the chain. A client renders the link only when there is one.
- timestring <date-time>required
When the deposit was observed on chain. RFC3339 UTC,
Zsuffixed. The list is ordered on it, newest first, itscreatedfilters bound it, and the aggregate buckets on it. What the deposit was worth, three ways: the on-chain integer, the same figure scaled by the asset's decimals for display, and the USD Stridge valued it at when it landed.
- rawstringrequired
The on-chain amount in the asset's smallest unit, as a decimal string.
Show full descriptionShow less
It is a string because a token with eighteen decimals overflows a double long before it overflows the chain, so a number here would silently round the value a client is meant to reconcile against a block explorer.
rawstated as the shared token amount: the same base units, the exact decimalrawscaled by the asset'sdecimals(the figure a person reads), the decimals and the asset's symbol. It is reported rather than left to the client to divide so every surface shows the same number.Show full descriptionShow less
An asset the token registry does not recognise is stated as
Unknownwith no decimals, so itsamount_decimalisraw.- usdstringrequired
What the deposit was worth in USD at the moment it was credited, as a decimal string. It is the valuation the aggregate sums, so a client reconciling a total uses this and not a price it looked up later.
- rawstringrequired
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.
- 400environment_requiredEnvironment required
- 400header_invalidInvalid header
- 400422parameter_invalidInvalid parameter
- 400parameter_unknownUnknown parameter
- 401api_key_not_acceptedAPI key not accepted
- 401authentication_requiredAuthentication required
- 401publishable_key_not_acceptedPublishable key not accepted
- 401token_invalidInvalid or expired token
- 403membership_suspendedMembership suspended
- 403permission_deniedPermission denied
- 404environment_not_foundEnvironment not found
- 404resource_missingNo such object
- 409environment_provisioningEnvironment provisioning
- 409environment_resettingEnvironment resetting
- 429rate_limitedToo many requests