Additionally, paste this code immediately after the opening tag:

List Assets by Address

This endpoint will list all assets for this address on this Blockchain, the network is based on the Vault.

key.singleItemTitle GET /vaults/{vaultId}/{blockchain}/addresses/{address}/assets

Path Parameters

  • Required
    address string

    The address for which all assets will be listed.

    Example : tb1qv9mpmhldvq6swsjrrhk2a2ll6wk7hhpv4mgz5d
  • Required
    blockchain string

    Represents the specific blockchain protocol name, e.g. Bitcoin, Tron, Ethereum , Binance Smart Chain etc.

    Example : bitcoin
  • 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

Success

  • 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

        Information about each asset associated with the address.

        • Required
          assetData object

          Contains data about the asset.

          • Required
            allocatedAmount string

            The allocated amount of the asset associated with the address.

            Example : 0
          • Required
            availableAmount string

            The available amount of the asset associated with the address.

            Example : 49990
          • Required
            blockedAmount string

            The blocked amount of the asset associated with the address.

            Example : 0
          • Required
            contract string

            The contract address of the asset.

            Example : TXLAQ63Xg1NAzckPwKHvzw7CSEmLMEqcdj
          • Required
            standard string

            The standard of the asset e.g. TRC-20, BEP-20, ERC-20 .

            Example : TRC-20
          • Required
            totalAmount string

            The total amount of the asset associated with the address.

            Example : 49990
        • Required
          exchangeRate string

          The current exchange rate.

          Example : 0.9994230956541328
        • Required
          symbol string

          The symbol of the asset, e.g. BTC, BNB, USDT, ETH, JST, USDC.

          Example : BTC
        • Required
          type string

          The type of the asset - COIN/TOKEN

          Example : TOKEN

Request Example

GET
https://rest.vaultody.com/vaults/60c9d9921c38030006675ff6/bitcoin/addresses/tb1qv9mpmhldvq6swsjrrhk2a2ll6wk7hhpv4mgz5d/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": "49990",
                        "blockedAmount": "0",
                        "contract": "TXLAQ63Xg1NAzckPwKHvzw7CSEmLMEqcdj",
                        "standard": "TRC-20",
                        "totalAmount": "49990"
                    },
                    "exchangeRate": "0.9994230956541328",
                    "symbol": "BTC",
                    "type": "TOKEN"
                }
            ]
        }
    }
}