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
Trait.collection_id
IntThe collection identifier of the asset's collection to which the trait belongs.
Trait.id
Int!
Trait.id
Int!A unique indentifier.
Trait.name
String!
Trait.name
String!The name of the trait.
Trait.num_assets
Int
Trait.num_assets
IntThe 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
Trait.possible_values
TraitPossibleValuesA TraitPossibleValues object that holds the trait's value type and list of possible values.
Trait.value
String
Trait.value
StringThe value of the trait for a particular asset. This value will be null if the Trait object is not accessed from a parent asset.