Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuidesChangelog
View Mirror World on Github
Join the Discord server

Language:

registerCollection

Register An NFT Collection Info To Metadata Service. After Successful Registration, The Metadata Service Will Index The Collection Data.

The full type signature of the method is documented here


import {
type RegisterCollectionPayloadV2,
QueryNFTsFilterType,
} from "@mirrorworld/web3.js"
const payload: RegisterCollectionPayloadV2 = {
collection: "qkuKJWMi14rdYLPBghfBRDpJASdbcLU6xZH3cpUZfng",
collection_name: "example collection",
collection_type: "NFT",
collection_orders: [
{
order_field: "price",
order_desc: "Price: Low to High",
desc: true,
},
],
collection_filters: [
{
filter_name: "Rarity",
filter_type: QueryNFTsFilterType.enum,
filter_value: ["Common", "Rare", "Elite", "Ledengary", "Mythical"],
},
],
}
await mirrorworld.Solana.Metadata.registerCollection(payload)

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Integration

    Guides

    API Reference

    Changelog