> ## Documentation Index
> Fetch the complete documentation index at: https://trustos.telefonicatech.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Global State

> Gets the assets's global state.

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.


## OpenAPI

````yaml get /assets/{id}/global-state
openapi: 3.0.1
info:
  title: TrustOS EVM Track API
  description: >-
    TrustOS EVM Track API is used to interact with EVM based blockchain
    networks. In case you have some questions or need more about the use of this
    API, don't hesitate to contact B-Team:
  contact:
    name: Blockchain Team
    email: soporte-bteam@telefonica.com
  version: 2.2.2
servers:
  - url: https://lab.trustos.telefonicatech.com/track/v2
    description: Lab
security: []
tags:
  - name: Asset Creation
    description: Digital asset creation endpoints.
  - name: Asset Management
    description: All about the digital asset lifecycle.
  - name: Utils
    description: Methods for specific use cases.
paths:
  /assets/{id}/global-state:
    get:
      tags:
        - Asset Management
      summary: Get an asset's global state by id.
      parameters:
        - name: id
          in: path
          description: Identifier of the asset.
          required: true
          schema:
            type: string
            example: did:trustos:trackid:<id>
      responses:
        '200':
          $ref: '#/components/responses/200-AssetFoundGlobalState'
        '401':
          $ref: '#/components/responses/401-AuthenticationError'
        '404':
          $ref: '#/components/responses/404-AssetNotFound'
        '500':
          $ref: '#/components/responses/500-InternalServerError'
      security:
        - bearerAuth: []
components:
  responses:
    200-AssetFoundGlobalState:
      description: Successful asset's global state retrieval.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 200
              message:
                type: string
                description: Message returned by the request.
                example: Asset found
              data:
                type: object
                properties:
                  trackID:
                    type: string
                    description: Global identifier of the asset.
                    example: did:trustos:trackid:<id>
                  assetId:
                    type: string
                    description: Identifier of the asset.
                    example: asset-test-01
                  data:
                    type: object
                    description: Immutable data of the asset.
                    properties:
                      id:
                        type: string
                        example: A2839RP
                      version:
                        type: string
                        example: '1'
                  networkId:
                    type: number
                    description: Network identifier where the evidence was registered.
                    example: 10004
                  assetHash:
                    type: string
                    description: Hash of assetId and data properties.
                    example: >-
                      3c543e352981fabafc8a78a301cd116320010a13abe8abf8428eaedcee7ddabd
                  globalState:
                    type: object
                    description: Global state of the asset.
                    properties:
                      color:
                        type: string
                        example: red
                      position:
                        type: object
                        properties:
                          x:
                            type: string
                            example: '23.34'
                          'y':
                            type: string
                            example: '-24.22'
    401-AuthenticationError:
      description: Authentication error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 401
              type:
                type: string
                description: Error type.
                example: Authentication Error
              message:
                type: string
                description: Message returned by the request.
                example: Token is not provided
    404-AssetNotFound:
      description: Asset not found.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 404
              type:
                type: string
                description: Error type.
                example: Not Found Error
              message:
                type: string
                description: Message returned by the request.
                example: Asset not found
    500-InternalServerError:
      description: Internal server error.
      content:
        application/json:
          schema:
            type: object
            properties:
              statusCode:
                type: number
                description: Request status code.
                example: 500
              type:
                type: string
                description: Error type.
                example: Internal Server Error
              message:
                type: string
                description: Message returned by the request.
                example: Oops! Something went wrong, please try again later
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````