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 Network to your web3 wallet
If not done already, please add the LAOS network to Metamask, or to your preferred web3 wallet.
Until LAOS is live in Polkadot, using the Testnet, the KLAOS Nova Parachain, is the recommended chain to use. You may use the public RPC endpoint, chainID, and rest of specs here.
A quick convenient way to add the network is by clicking on the Connect Wallet icon in the entry in the Chainlist repository.
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 K-LAOS 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 K-LAOS can transfer its ownership to a different account by simply using the following method:
which emits the corresponding event:
Last updated