Skip to main content
GET
/
nft
/
collection
/
trait
/
attributes
cURL
curl --request GET \
  --url https://api.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<string>
default:1
required

Unique identifier for a blockchain network.

Available options:
1,
10,
137,
167000,
167009,
2442,
324,
42161,
42170,
43113,
5000,
56,
7000,
8453,
solana,
solana-devnet
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>

Specify which provider to use. The project's provider priority list is used by default if no providers are selected. (Priority list can be managed on Uniblock's dashboard)

Available options:
GoldRush,
,
Covalent

Response

200 - application/json
name
string
required

The name of the trait.

Example:

"Background"

attributes
object[]
required

The attributes of the trait.