Trait

Each asset has one or more traits in it's on-chain metadata.

type Trait {
  id: Int!
  name: String!
  collection_id: Int
  value: String
  num_assets: Int
  possible_values: TraitPossibleValues
}

Fields

Trait.collection_id Int

The collection identifier of the asset's collection to which the trait belongs.

Trait.id Int!

A unique indentifier.

Trait.name String!

The name of the trait.

Trait.num_assets Int

The number of assets that have the same trait/value combination. This value will be null if the Trait object does not have a value, therefore it will be null if not accessed from a parent asset.

Trait.possible_values TraitPossibleValues

A TraitPossibleValues object that holds the trait's value type and list of possible values.

Trait.value String

The value of the trait for a particular asset. This value will be null if the Trait object is not accessed from a parent asset.