List transactions
/ transactionsReturn the environment's chain transactions as a list, {object, data, has_more, url}, newest first: every deposit that arrived at one of its addresses and every transaction Stridge sent for it, in one feed.
The filters are named.
type,side,status,network_id,tx_id,ownerandfrom_addressmatch exactly, andcreated[gte],created[gt],created[lte]andcreated[lt]boundcreated_at; together they are ANDed, and each page lists under the filters its own request sends, so a later page sends them again besidestarting_afterorending_before.owneris a deposit's, so it narrows the feed to deposits. Any other query parameter answers400parameter_unknownnaming it, and a value outside its schema, a badlimitor astarting_afterorending_beforenaming no object of this list answers422parameter_invalidnaming it.
Parameters
Query
- limitinteger <int32>optionaldefault 20
The page size. A value that is not an integer from 1 to the maximum answers
422parameter_invalidnaminglimit; it is never clamped. - starting_afterstringoptional
A cursor: the id of an object of this list, usually the last one of the page just read. The page answered holds the objects that come right after it in the list's order. The object need not match this request's filters; its place in the order is what counts.
Show full descriptionShow less
An id that names no object of this list in this environment answers
422parameter_invalidnamingstarting_after. It cannot be sent withending_before. - ending_beforestringoptional
A cursor: the id of an object of this list, usually the first one of the page just read. The page answered holds the objects that come right before it, still in the list's order, and
has_moresays whether there are more before them.Show full descriptionShow less
An id that names no object of this list in this environment answers
422parameter_invalidnamingending_before, as does sending it together withstarting_after. - typestringoptionalenum deposit · payout · refill · rebalance · treasury · withdrawal
Only transactions of this
type. - sidestringoptionalenum in · out
Only transactions on this
side. - statusstringoptionalenum pending · confirmed · failed · rejected · expired
Only transactions in this
status. - network_idinteger <int32>optional
Only transactions on this chain, by its numeric identifier.
- tx_idstringoptional
Only transactions with this hash.
- ownerstringoptional
Only deposits to addresses this owner holds.
- from_addressstringoptional
Only transactions sent from this address.
- created[gte]string <date-time>optional
Only objects created at or after this instant (RFC 3339).
- created[gt]string <date-time>optional
Only objects created after this instant (RFC 3339).
- created[lte]string <date-time>optional
Only objects created at or before this instant (RFC 3339).
- created[lt]string <date-time>optional
Only objects created before this instant (RFC 3339).
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 page of transactions.
- objectstringrequiredenum list
The object's type, always
list. - 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. - 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.The network fee the transaction paid, in the chain's own coin, or
nullwhere the network catalogue no longer carries the chain.- 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.
- idstringrequired
- has_morebooleanrequired
Whether the list holds more objects past this page in the direction it was read: after its last object, or before its first for a page read with
ending_before. - urlstringrequired
The path the list is read at.
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
- 409environment_provisioningEnvironment provisioning
- 409environment_resettingEnvironment resetting
- 429rate_limitedToo many requests