List deposit addresses
/ udaReturn the environment's universal deposit addresses as a list, {object, data, has_more, url}, newest first.
The filters are named.
owner,statusanddestination_network_idmatch 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. 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.The scope comes from the request, not from a filter.
The environment is resolved from the credential and the
X-Stridge-Environmentheader before any filter is read, and no filter can widen it: an address of another environment is on no page.
Show 2 more detailsShow fewer details
A resetting sandbox.
While a sandbox's reset runs it answers
409environment_resetting: nothing is served for a sandbox until its reset finishes.From a browser
the publishable key and a session token with
activityenabled list the session's customer's addresses alone: the customer comes from the token, and the request may sendlimit,starting_afterandending_beforeonly (anything else answers400naming it). It is answered each address's declared subset.
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. - ownerstringoptional
Only addresses assigned to this owner, the caller's own identifier for a customer.
- statusstringoptionalenum active · retired
Only addresses with this
status. - destination_network_idinteger <int32>optional
Only addresses whose deposits settle to this chain, by the chain's own numeric identifier, as
destination.network_idcarries it. - 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 deposit addresses.
- objectstringrequiredenum list
The object's type, always
list. - idstring <uuid>required
The address family's opaque identifier.
- objectstringrequired
The object's type, always
uda_address. - environment_idstring <uuid>required
The environment this address 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. - ownerstringrequired
Who the 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.
- statusstringrequiredenum active · retired
Whether the address still accepts deposits. A retired address keeps its history and its settlements; it simply stops being handed out.
Where money swept from the address ends up: an address on a chain, denominated in one asset, held either inline or by a named treasury.
Every chain the family is observed on. It is empty on an address minted before any chain was configured for it.
The address's own ordered overrides, first match wins. Empty where it states none.
- routing_policy_idstring | null <uuid>required
The shared rule list this address consults when its own rules all fall through, or
nullwhere it states none and inherits the environment's default. - created_atstring <date-time>required
When the address was minted. RFC3339 UTC,
Zsuffixed. The list is ordered on it, newest first, and the details aggregate buckets on it.
- idstring <uuid>required
- 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
- 401client_secret_expiredClient secret expired
- 401client_secret_invalidInvalid client secret
- 401client_secret_requiredClient secret required
- 401client_secret_unclaimedClient secret not claimed
- 401publishable_key_not_acceptedPublishable key not accepted
- 401secret_key_in_browserSecret key exposed in a browser
- 401token_invalidInvalid or expired token
- 403component_not_enabledComponent not enabled
- 403membership_suspendedMembership suspended
- 403permission_deniedPermission denied
- 404environment_not_foundEnvironment not found
- 409environment_provisioningEnvironment provisioning
- 409environment_resettingEnvironment resetting
- 429rate_limitedToo many requests