Additionally, paste this code immediately after the opening tag:

List Vaults by Asset ID

This endpoint allows users to retrieve information about their specific asset in all their vaults.

key.singleItemTitle GET /assets/{assetId}/{blockchain}/vaults/{networkType}

Path Parameters

  • Required
    assetId string

    The specific asset ID for the blockchain.

    Example : 6523e058a06ebf1322d7dd6f
  • Required
    blockchain string

    The specific blockchain, e.g Bitcoin, Ethereum, Binance Smart Chain, Tron.

    Example : bitcoin
  • Required
    networkType string

    The specific type of the vault - MAIN or TEST (small or capital letters).

    Default : test
    Example : test
    Possible Values : main test

Query Paramaters

  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString

Response Schema

200 400 401 402 403 409 415 422 429 500
Http Status Code: 200
Content Type: application/json

The request has been successful.

  • Object :

  • Required
    apiVersion string

    Specifies the version of the API that incorporates this endpoint.

    Example : 2024-05-09
  • Required
    requestId string

    Defines the ID of the request. The requestId is generated by Vaultody and it's unique for every request.

    Example : 601c1710034ed6d407996b30
  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : yourExampleString
  • Required
    data object
    • Required
      item object
      • Required
        exchangeRate string

        The current exchange rate.

        Example : 1.2
      • Required
        vaults array
        • Required
          allocatedAmount string

          Allocated amount of the specific asset in the Vault.

          Example : 2
        • Required
          availableAmount string

          Available amount of the specific asset in the Vault.

          Example : 3.1
        • Required
          blockedAmount string

          Blocked amount of the specific asset in the Vault.

          Example : 0
        • Required
          totalAmount string

          Total amount of the specific asset in the Vault.

          Example : 5.00001
        • Required
          vaultColor string

          The specific color of the Vault.

          Example : #FF991F
        • Required
          vaultId string

          Defines the unique ID of the Vault which contains the specific asset.

          Example : 654a4ad6d6aeb3000769074d
        • Required
          vaultName string

          The name of the Vault.

          Example : Main Vault
        • Required
          vaultType string

          Represents the type of the Vault, e.g. Smart, General.

          Example : general
          Possible Values : smart general

Request Example

GET
https://rest.vaultody.com/assets/6523e058a06ebf1322d7dd6f/bitcoin/vaults/test?context=yourExampleString
Headers
Content-Type: application/json
x-api-key: cb233681a8ee35665296c1824c1f67bc46691788
x-api-sign: PSqeqRLap8rBc/wogNU1DeGGUPb2VyVtg6GiBOaBnYQ=
x-api-timestamp: 1681885776
x-api-passphrase: zYgKeueoOq

Response Example

{
    "apiVersion": "2024-05-09",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "item": {
            "exchangeRate": "1.2",
            "vaults": [
                {
                    "allocatedAmount": "2",
                    "availableAmount": "3.1",
                    "blockedAmount": "0",
                    "totalAmount": "5.00001",
                    "vaultColor": "#FF991F",
                    "vaultId": "654a4ad6d6aeb3000769074d",
                    "vaultName": "Main Vault",
                    "vaultType": "general"
                }
            ]
        }
    }
}