Skip to main content
GET
/
tenant
/
{tenantId}
/
admin
/
gas_station
/
{walletId}
/
get_wallet_custodians
GetWalletCustodians
curl --request GET \
  --url https://api.example.com/tenant/{tenantId}/admin/gas_station/{walletId}/get_wallet_custodians
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Description

This endpoint retrieves all custodian providers that are actively associated with a specific wallet, providing their identifiers and provider names.

Input

  • tenantId (path, required): Identifier of the tenant that owns the wallet
  • walletId (path, required): Identifier of the wallet to query
  • ct (optional): Token to cancel the asynchronous operation

Output

Returns a Result<WalletCustodiansClientModel> containing a collection of custodian relationships with their identifiers and names.

Examples

Request:
GET /api/tenant/1024/gas-station/wallet/4096/custodians
Response (200 OK):
{
  "data": {
    "walletCustodians": [
      {
        "walletCustodianId": 12,
        "custodianName": "Fireblocks"
      },
      {
        "walletCustodianId": 15,
        "custodianName": "SelfCustody"
      }
    ]
  },
  "isSuccess": true
}

Errors

  • 400 Bad Request: Invalid wallet or tenant identifier format
  • 401 Unauthorized: Authentication credentials are missing or invalid
  • 403 Forbidden: User lacks permission to view wallet custodians
  • 404 Not Found: Tenant or wallet does not exist
  • 500 Internal Server Error: Unexpected server error occurred during retrieval

Notes

  • Only returns active custodian relationships for the wallet
  • Multiple custodians may be associated with a single wallet

Path Parameters

tenantId
integer<int64>
required

Identifier of the tenant.

walletId
integer<int64>
required

Identifier of the wallet.

Query Parameters

api-version
string | null

Response

Wallet custodians retrieved successfully.

Wrapper for API operation results containing success status, error information, and return value.

isSuccess
boolean

True if the operation completed successfully, false otherwise.

Example:

true

isFailure
boolean

True if the operation failed, false otherwise.

Example:

false

error
object

Error information returned when the operation fails.

Example:
{
"code": "ValidationError",
"message": "The request parameters failed validation.",
"info": [
"The Name field is required.",
"The Id field must be greater than 0."
]
}
value
object

The result value returned when the operation is successful.