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

Language:

createCollection

Creates A New Verified Collection On Polygon


import {
type CreateEVMCollectionV2Payload,
EVMContractType,
} from "@usemirrorworld/web3.js"
const payload: CreateEVMCollectionV2Payload = {
// The base url of nft json config files. Full url to individual NFT json configuration will be base_url + token_id
url: "https://api.orangecomet.io/collectible-metadata/the-mayfair-witches-pass/",
// The name of the collection
name: "Mayfair Angels Pass",
// The symbol of the collection
symbol: "MAP",
// The type of contract to be deployed. Default is erc1155. Allowed values are "erc1155" and "erc721"
contract_type: EVMContractType.erc721,
/**
* The starting token_id of the collection.
* @default 0
*/
mint_start_id: 1,
/**
* The ending token_id of the collection. Default is 0
* @optional
* @default 0
*/
mint_end_id: 30,
/**
* The amount of NFTs to be minted. Default is 1. For erc721 collections this value should be 1
* @optional
* @default 1
*/
mint_amount: 1,
}
await mirrorworld.Polygon.Asset.createCollection(payload)

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023
On this page

    Home

    Integration

    Guides

    API Reference