Additionally, paste this code immediately after the opening tag:

List Assets By Vault

Through this endpoint customers can obtain information about available assets in one of their vaults, regardless of the blockchain protocol or network, by providing vaultId.

key.singleItemTitle GET /vaults/{vaultId}/assets

Path Parameters

  • Required
    vaultId string

    Defines the unique ID of the Vault.

    Example : 60c9d9921c38030006675ff6

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 404 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
        assets array
        • Required
          assetData object
          • Required
            allocatedAmount string

            Represents the allocated amount of the asset in the particular vault.

            Example : 0
          • Required
            availableAmount string

            Represents the available amount of the asset in the particular vault.

            Example : 986.1
          • Required
            blockedAmount string

            Represents the blocked amount of the asset in the particular vault.

            Example : 0
          • Required
            contract string

            Represents the token identifier.

            Example : 0x1c7d4b196cb0c7b01d743fbc6116a902379c7238
          • Required
            standard string

            Represents the token standard, e.g. ERC-20, TRC-20.

            Example : ERC-20
          • Required
            totalAmount string

            Represents the amount of the asset in the particular vault.

            Example : 986.1
        • Required
          assetId string

          Represents the specific asset ID.

          Example : 6523e058a06ebf1322d7dd6f
        • Required
          blockchain string

          Represents the blockchain of the asset in the particular vault, e.g. Bitcoin, Ethereum, Binance Smart Chain, Tron.

          Example : bitcoin
        • Required
          exchangeRate string

          Represents the exchange rate of the asset.

          Example : 0.9999615316886441
        • Required
          network string

          Represents the network of the asset in the particular vault, e.g. Testnet, Sepolia, Nile.

          Example : mainnet
        • Required
          symbol string

          The specific asset symbol, e.g BTC, ETH, BNB, TRX, USDT, USDC.

          Example : BTC
        • Required
          type string

          Represents the type of the asset - COIN/TOKEN

          Example : COIN

Request Example

GET
https://rest.vaultody.com/vaults/60c9d9921c38030006675ff6/assets?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": {
            "assets": [
                {
                    "assetData": {
                        "allocatedAmount": "0",
                        "availableAmount": "986.1",
                        "blockedAmount": "0",
                        "contract": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
                        "standard": "ERC-20",
                        "totalAmount": "986.1"
                    },
                    "assetId": "6523e058a06ebf1322d7dd6f",
                    "blockchain": "bitcoin",
                    "exchangeRate": "0.9999615316886441",
                    "network": "mainnet",
                    "symbol": "BTC",
                    "type": "COIN"
                }
            ]
        }
    }
}