Skip to main content
GET
/
assets
/
{id}
/
global-state
Get an asset's global state by id.
curl --request GET \
  --url https://lab.trustos.telefonicatech.com/track/v2/assets/{id}/global-state \
  --header 'Authorization: Bearer <token>'
{
  "statusCode": 200,
  "message": "Asset found",
  "data": {
    "assetId": "asset-test-01",
    "data": {
      "id": "A2839RP",
      "version": "1"
    },
    "networkId": 10004,
    "assetHash": "3c543e352981fabafc8a78a301cd116320010a13abe8abf8428eaedcee7ddabd",
    "globalState": {
      "color": "red",
      "position": {
        "x": "23.34",
        "y": "-24.22"
      }
    }
  }
}
The global state is formed by all metadata properties of the transactions. In case that any property has been updated, the global state will have the most recent value.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Identifier of the asset.

Example:

"asset-test-01"

Response

Successful asset's global state retrieval.

statusCode
number

Request status code.

Example:

200

message
string

Message returned by the request.

Example:

"Asset found"

data
object
I