Creating a Sibling Collection in LAOS
The creation of a sibling collection in LAOS just requires one transaction, which can be sent from any web3 address. The transaction must specify the owner of collection, i.e. the address that will be capable of minting and evolving assets within it.
Add the Network to your web3 wallet
Ensure your web3 wallet (e.g., MetaMask) is configured for the LAOS network. For first-time users, we recommend using the LAOS Testnet. You can find the necessary network details, including the public RPC endpoint and chainID here.
Send a CreateCollection Transaction
Use your preferred web3 library to execute the createCollection
transaction, available at the hardcoded contract address 0x...403
, as detailed in the EVM Interface section:
When sibling collections are created, they are assigned a collectionAddress
, which can be read from the emitted event, or from the return parameter of createCollection
. Only the provided owner
can start minting and evolving in the newly created collection.
An example
The following createCollection transaction in LAOS Sigma (Testnet) serves as an example to explore its anatomy, as well as the event it emitted, which includes the owner and the collection address.
Transferring Ownership of a Collection
The owner of a collection in LAOS can transfer its ownership to a different account by simply using the following method:
which emits the corresponding event:
Last updated