Fetching Project Data

Once a project is created on the ORB platform, its gameId can be used to retrieve information about it.

Fetching all created projects

Use this Query to retrieve all the projects created by a specified wallet address.

GetMyProjects
query GetMyProjects($address: String!) {
  GetMyProjects(address: $address) {
    createdAt
    description
    devWallet
    gameId
    name
    status
  }
}
Input Variables
"address": "tz1i7SnAcekYtyPv1RZ9YBbnd8ScNcREVaDK"
Sample Response
{
  "data": {
    "GetMyProjects": [
      {
        "createdAt": "04-10-2023",
        "description": "This is a test description",
        "devWallet": "tz1i7SnAcekYtyPv1RZ9YBbnd8ScNcREVaDK",
        "gameId": "game:5TGNoEBCOb8ozhchjuqGv",
        "name": "Test Game",
        "status": "LIVE"
      }
    ]
  }
}

Fetching information about a specific project

Use the following query to retrieve information about a project, based on its specified gameId.

GetProjectInfo
query GetProjectInfo($gameId: String!) {
  GetProjectInfo(gameId: $gameId) {
    gameId
    name
    status
    devWallet
    description
    createdAt
  }
}
Input Variables
"gameId" : "game:5TGNoEBCOb8ozhchjuqGv"
Sample Response
{
  "data": {
    "GetProjectInfo": {
      "gameId": "game:5TGNoEBCOb8ozhchjuqGv",
      "name": "Test Game",
      "status": "LIVE",
      "devWallet": "tz1i7SnAcekYtyPv1RZ9YBbnd8ScNcREVaDK",
      "description": "This is a test description",
      "createdAt": "04-10-2023"
    }
  }
}

For a specified gameId you can fetch information such as the date it was created, its description and the wallet addres that created it.

Last updated