Query Credential metadata (Example)

Query Credential metadata with our API

Last updated on December 22, 2021

This page describes how you can use the GraphQL explorer to query metadata of a credential.

The query includes Cred.

Please refer to the Query NFT holders (Example) for the complete request procedure.

 

Arguments

Name
Type
Description
id
ID of the credential.
 

Example

Request

query credMetadata{
  cred(id: 1) {
    id
    name
    description
    chain
    type
    curatorAddress
    referenceLink
    itemCount
    subgraph {
      endpoint
      query
      expression
    }
		items(first: 10 after: "") {
      list
    }
  }
}

Response

{
  "data": {
    "cred": {
      "id": "1",
      "name": "Static address cred",
      "description": "address cred desc",
      "chain": "ETHEREUM",
      "type": "ADDRESS",
      "curatorAddress": "0x424B279097560001B35cedDB649838FBb8227009",
      "referenceLink": "https://www.notion.so/bulletlabs/Frontend-Web-Credential-refactor-7984231881eb41228cb0d82a2bd91cad",
      "itemCount": 10,
      "subgraph": null,
			"items": {
        "list": [
          "0x1D93aa0c764099d141D0Fd20A058E27C3c5a7695",
          "0x5376A8B28cdd88d6211816120380d7Ff4bB6158d",
          "0x7E6D0E2dea2C76b8307Ff89813525241cdc3De1E",
          "0xdFfccF0f5ab2a27C04ba9A48954D43C4C51BF524"
        ]
      }
    }
  }
}

For more information on each attribute, see GraphQL API

Did this answer your question?
😞
😐
🤩