Additionally, paste this code immediately after the opening tag:

List assets

Through this endpoint, users can quickly view all their current balances, with the flexibility to filter assets based on their network type, whether it be testnet or mainnet.

key.singleItemTitle GET /assets/{networkType}

Path Parameters

  • Required
    networkType string

    The specific type of the vault - MAIN or 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
  • Optional
    limit integer

    Defines how many items should be returned in the response per page basis.

    Default : 50
    Example : 50
  • Optional
    startingAfter string

    Defines the id of the previous listed record id from which the current list should start from.

    Example : 5ca21f92cf5431000105d1a7

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
      limit integer

      Defines how many items should be returned in the response per page basis.

      Example : 50
    • Optional
      startingAfter string

      Defines the id of the previous listed record id from which the current list should start from.

      Example : 5ca21f92cf5431000105d1a7
    • Required
      hasMore boolean

      Defines whether or not there are more elements available after this set.

      Example : true
    • Required
      items array
      Example : Array ( )
      • Required
        allocatedAmaunt string

        Allocated amount for the specific asset.

        Example : 0
      • Required
        availableAmount string

        Available amount for the specific asset.

        Example : 0.00023054
      • Required
        blockchain string

        Represents the specific blockchain protocol name, e.g. Bitcoin, Ethereum etc.

        Example : bitcoin
      • Required
        blockedAmount string

        Blocked amount for the specific asset.

        Example : 0
      • Required
        exchangeRate string

        The current exchange rate.

        Example : 39884.82228404232
      • Required
        id string

        The specific asset ID.

        Example : 6523e058a06ebf1322d7dd6f
      • Required
        symbol string

        The specific symbol - BTC, ETH, BNB, TRX.

        Example : BTC
      • Optional
        tokenData object
        • Required
          contractAddress string

          Token identifier.

          Example : TF17BgPaZYbz8oxbjhriubPDsA7ArKoLX3
        • Required
          contractType string

          The specific standard for the token, e.g. TRC-20, BEP-20.

          Example : TRC-20
      • Required
        totalAmount string

        Total amount for the specific asset.

        Example : 0.00023054
      • Required
        type string

        The type of the asset - Coin or Token.

        Example : COIN

Request Example

GET
https://rest.vaultody.com/assets/TEST?context=yourExampleString&limit=50&startingAfter=5ca21f92cf5431000105d1a7
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": {
        "limit": 50,
        "startingAfter": "5ca21f92cf5431000105d1a7",
        "hasMore": true,
        "items": [
            {
                "allocatedAmaunt": "0",
                "availableAmount": "0.00023054",
                "blockchain": "bitcoin",
                "blockedAmount": "0",
                "exchangeRate": "39884.82228404232",
                "id": "6523e058a06ebf1322d7dd6f",
                "symbol": "BTC",
                "tokenData": {
                    "contractAddress": "TF17BgPaZYbz8oxbjhriubPDsA7ArKoLX3",
                    "contractType": "TRC-20"
                },
                "totalAmount": "0.00023054",
                "type": "COIN"
            }
        ]
    }
}