- Mainnet: https://thegraph.com/explorer/subgraph/decentraland/collections-ethereum-mainnet (QmWrLR11uq12yDD7qUFzeyYEFXxQiU2UcKFYZLrccCYkwk)
- Ropsten: https://thegraph.com/explorer/subgraph/decentraland/collections-ethereum-ropsten (QmbkYp3VQAvfMqsnYdNhbgYRxJ14mkBF2PnhAVLvs21asT)
- Goerli: https://thegraph.com/explorer/subgraph/decentraland/collections-ethereum-goerli (QmSjgZDY25SNr3kW6bsQWcSeh3NRoojtbrMSrXvKz4BsvJ)
- Matic: https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mainnet (QmQAZp71zgsdaqQqeBmgU2MhxNfS44ioeCJXP9kmt3Sa5c)
- Matic-temp: https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mainnet-temp (QmaPNpL5oB4NjrTFmWAE4CesMjfhjouCigwptNz7x9i8cD)
- Mumbai: https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mumbai (Qmebs8WsrLs23pQ2oCZggVFN5raZffPx5Auqh1K1pr7iQQ)
npm run install
npm run deploy:{network}
The collection's id
is the smart contract address of the collection.
The item's id
is {collection_contract_address}-{item_blochain_id}
. The item_blockchain_id
is the index of the item in the collection. E.g: if you have a collection with 2 items, the first is 0
and the second one is 1
. Therefore, the id of the first item will be: {contract_address}-0
Ethereum addresses should be passed lowercased:
0xB549B2442b2BD0a53795BC5cDcBFE0cAF7ACA9f8
❌0xb549b2442b2bd0a53795bc5cdcbfe0caf7aca9f8
✅
{
collections(first: 5) {
id
items {
id
}
owner
creator
}
items(first: 5) {
id
collection {
id
}
blockchainId
itemType
}
}
{
items(first: 1) {
id
rawMetadata
metadata {
itemType
wearable {
description
bodyShapes
rarity
category
}
}
}
}
Owner's id
is the owner's Ethereum address
{
nfts(first: 5) {
id
tokenId
owner {
id
}
}
}
{
orders(first: 5) {
id
nftAddress
price
buyer
status
nft {
id
}
}
}
{
counts {
collectionTotal
itemTotal
nftTotal
orderTotal
}
}