registerCollection
Register An NFT Collection Info To Metadata Service After Successful Registration The Metadata Service Will Index The Collection Data
import { type RegisterCollectionPayloadV2, QueryNFTsFilterType,} from "@mirrorworld/web3.js"const payload: RegisterCollectionPayloadV2 = { collection: "0xc8F1376211e92320360aE6cac299F1664f438fa2", 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.Ethereum.Metadata.registerCollection(payload)
Edit this page on GitHub