assets

Account balance in asset

Get the account balance in a given asset. 0 for non-existent asset (use GET /assets/details/{assetId} to check if the asset exists)

get/assets/balance/{address}/{assetId}

Path parameters

addressstring required
Example:3P274YB5qseSE9DTTL3bpSjosZrYBPDpJ8k

Address base58 encoded

assetIdstring required
Example:DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p

Asset ID base58 encoded

Response

successful operation

addressstring required
assetIdstring required
balanceinteger required

Example response

{
  "assetId": "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p"
}

Changes

Changed in 3 of the 36 revisions of this API.34

  • d9769537f2c312See the full diff
    • the assetId response's property type/format changed from string/ to / for status 200 (media type: application/json)

      response-property-type-changed

    • added Hash to the assetId response property allOf list for the response status 200 (media type: application/json)

      response-property-all-of-added

    • added Hash to the assetId response property allOf list for the response status 200 (media type: application/json;large-significand-format=string)

      response-property-all-of-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the media type application/json;large-significand-format=string for the response with the status 200

      response-media-type-added

  • c901f97e3a8d21See the full diff
    • removed the media type application/json;large-significand-format=string for the response with the status 200

      response-media-type-removed

    • the assetId response's property type/format changed from / to string/ for status 200

      response-property-type-changed

    • removed Hash from the assetId response property allOf list for the response status 200

      response-property-all-of-removed

    This revision also has 63 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog