Files
sxchnge/backend/contracts/sendico/api/wallets/assets.yaml
T

36 lines
1.4 KiB
YAML

get:
tags: [Wallets]
summary: List live managed-wallet assets
description: |
Returns the live wallet asset catalogue currently announced by healthy CRYPTO
gateways in discovery. The endpoint is authenticated and authorized by
`organizations_ref`, but the returned asset list is gateway-driven rather than
organization-customized. Malformed gateway asset announcements are skipped.
If discovery is available but no valid wallet assets are currently announced,
the response contains an empty `assets` array.
operationId: walletAssetsList
security:
- bearerAuth: []
parameters:
- $ref: ../parameters/organizations_ref.yaml#/components/parameters/OrganizationsRef
responses:
'200':
description: Live managed-wallet asset catalogue
content:
application/json:
schema:
allOf:
- $ref: ../response/response.yaml#/components/schemas/BaseResponse
- type: object
properties:
data:
$ref: ./response/wallet.yaml#/components/schemas/WalletAssetsAuthData
'400':
$ref: ../response/operation.yaml#/components/responses/BadRequest
'401':
$ref: ../response/operation.yaml#/components/responses/Unauthorized
'403':
$ref: ../response/operation.yaml#/components/responses/Forbidden
'500':
$ref: ../response/operation.yaml#/components/responses/InternalServerError