Get a transaction
/ transactions/ {id}Return one of the environment's chain transactions, the same object the list answers. It is the object transaction.event names: a thin event's related_object.url is this path.
A transaction of another environment answers
404resource_missing, identical to an identifier that exists nowhere.
Parameters
Path
- idstringrequired
The transaction's identifier.
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 transaction.
- idstringrequired
The transaction's identifier, opaque. A deposit's is its deposit's
id; an outgoing transaction's is the identifiertransaction.eventcarries. - objectstringrequired
The object's type, always
transaction. - environment_idstring <uuid>required
The environment whose money the transaction moved.
- 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. - typestringrequiredenum deposit · payout · refill · rebalance · treasury · withdrawal
What moved the money:
depositfor money arriving, and for money leaving,payout,refill(a gas station topping up an address),rebalance,treasuryorwithdrawal(an outgoing transfer). - sidestringrequiredenum in · out
infor a deposit,outfor a transaction Stridge sent.
Show 24 more fieldsShow fewer fields
- statusstringrequiredenum pending · confirmed · failed · rejected · expired
Where the transaction stands.
pendinguntil the chain settles it, thenconfirmedorfailed; an outgoing transaction can also endrejected(refused before it was sent) orexpired(never mined in its window). - network_idinteger <int32>required
The chain, as the chain's own numeric identifier.
- network_symbolstring | nullrequired
The chain's slug, or
nullwhere the network catalogue no longer carries it. - tx_idstring | nullrequired
The transaction's hash on its chain, or
nullbefore it is broadcast. - from_addressstringrequired
The address the money left.
- to_addressstringrequired
The address the money reached.
- asset_addressstringrequired
The asset's contract on the chain, or empty where it is the chain's own coin.
What the transaction moved, in its asset, or
nullwhere the network catalogue no longer carries the asset, so its decimals are unknown.- 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 lone0, and no trailing zero after it ("12.5","0.000001","3"). - decimalsinteger <int32>required
The asset's decimals on its network, which
amount_decimalis scaled by. - assetstringrequired
The symbol of the asset the amount is in (
USDC), so a fee or a total never mixes units.
- amountstringrequired
The network fee the transaction paid, in the chain's own coin, or
nullwhere the network catalogue no longer carries the chain.- 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 lone0, and no trailing zero after it ("12.5","0.000001","3"). - decimalsinteger <int32>required
The asset's decimals on its network, which
amount_decimalis scaled by. - assetstringrequired
The symbol of the asset the amount is in (
USDC), so a fee or a total never mixes units.
- amountstringrequired
- usd_amountstring | nullrequired
What
amountwas worth in USD when it was recorded, a decimal string, ornullwhere no price was recorded (every outgoing transaction). - ownerstring | nullrequired
For a deposit, the owner of the address it arrived at, as the caller named them;
nullon an outgoing transaction, and on a deposit to an address no caller named: one assigned to nobody, or the environment's vault or gas station. - memostring | nullrequired
The memo an outgoing transaction carried, or
null. - block_numberstring | nullrequired
The block a deposit was mined in, or
nullon an outgoing transaction. - from_wallet_categorystring | nullrequired
For a deposit, what kind of address sent it, or
nullon an outgoing transaction.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. - to_wallet_categorystring | nullrequired
For a deposit, what kind of the environment's addresses received it (
uda,vault,gas_station), ornullon an outgoing transaction. - prepared_atstring | null <date-time>required
When an outgoing transaction was built, or
null. - signed_atstring | null <date-time>required
When an outgoing transaction was signed, or
null. - broadcasted_atstring | null <date-time>required
When an outgoing transaction was broadcast, or
null. - confirmed_atstring | null <date-time>required
When the transaction was confirmed on its chain, or
null. - rejected_atstring | null <date-time>required
When an outgoing transaction was rejected, or
null. - failed_atstring | null <date-time>required
When an outgoing transaction failed, or
null. - expired_atstring | null <date-time>required
When an outgoing transaction expired, or
null. - created_atstring <date-time>required
When the transaction was recorded. RFC3339 UTC, and the list's sort key, newest first.
- updated_atstring <date-time>required
When the transaction 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.
- 400environment_requiredEnvironment required
- 400header_invalidInvalid header
- 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