Skip to main content
GET
/
nft
/
collection
/
trait
/
attributes
Get Collection Trait Attributes
curl --request GET \
  --url https://api-test.uniblock.dev/uni/v1/nft/collection/trait/attributes \
  --header 'X-API-KEY: <api-key>'
{
  "name": "Background",
  "attributes": [
    {
      "attribute_name": "Background",
      "count": "Red"
    }
  ]
}

Authorizations

X-API-KEY
string
header
required

API key to access the API (optional)

Query Parameters

chainId
enum<number>
default:1
required

Unique identifier for a blockchain network.

Available options:
1,
10,
100,
10200,
11155111,
11155420,
11297108109,
1135,
1284,
1285,
137,
2020,
25,
250,
369,
4002,
4202,
42161,
421614,
43114,
545,
56,
59141,
59144,
747,
80002,
8453,
84532,
88882,
88888,
97
Example:

1

contractAddress
string
default:0x60e4d786628fea6478f785a6d7e704777c86a7c6
required

The address of the NFT collection to query.

Example:

"0x60e4d786628fea6478f785a6d7e704777c86a7c6"

trait
string
default:Background
required

The trait to query.

Example:

"Background"

includeRaw
boolean

Returns the raw data given by the provider. WARNING: removes backup feature, and raw data returned is not normalized which might make switching providers difficult

Example:

null

provider
enum<string>

Overrides our autorouting. Only specify this parameter if you would like to specify only a single provider to use for this request.

Available options:
Alchemy,
Moralis

Response

200 - application/json
name
string
required

The name of the trait.

Example:

"Background"

attributes
object[]
required

The attributes of the trait.