Skip to main content

Collection

Collection commands.

deploy​

Deploy a collection. (CW721, CW404, ERC721, CW20)

$ lighthouse collection deploy <config-path>
  • <config-path>: The path to the collection config file.

Options​

  • -c --code <code_id>: Register already deployed CW721/CW404 contract (optional)
  • -e --erc721address <erc721_address>: Register already deployed ERC721 contract (must be ERC2981 lighthouse edition) (optional)
  • -g --gas-price <gas_price>: Gas price to use for transaction (default: 0.1)

update​

Update a collection.

$ lighthouse collection update <config-path> <address>
  • <config-path>: The path to the collection config file.
  • <address>: The address of the collection contract.

Options​

  • -g --gas-price <gas_price>: Gas price to use for transaction (default: 0.1)

view​

View a collection.

$ lighthouse collection view <address>
  • <address>: The address of the collection contract.

point​

Deploy a pointer for a collection.

$ lighthouse collection point <address>
  • <address>: The address of the collection contract. either sei or 0x address.

Options​

  • -g --gas-price <gas_price>: Gas price to use for transaction (default: 0.1)

unfreeze​

Unfreeze a collection.

$ lighthouse collection unfreeze <address>
  • <address>: The address of the collection contract.

Options​

  • -g --gas-price <gas_price>: Gas price to use for transaction (default: 0.1)

reveal​

Reveal metadata for a collection.

$ lighthouse collection reveal <address>
  • <address>: The address of the collection contract.

Options​

  • -g --gas-price <gas_price>: Gas price to use for transaction (default: 0.1)

ownership​

Ownership commands.

update-lighthouse-admin​

Change the admin of a collection in Lighthouse Core. Will give the new admin full control over the collections lighthouse configuration.

$ lighthouse collection ownership update-lighthouse-admin <address> <new-admin>
  • <address>: The address of the collection contract.
  • <new-admin>: The address of the new admin.

Options​

  • -g --gas-price <gas_price>: Gas price to use for transaction (default: 0.1)

transfer-cw-ownable-ownership​

Transfer all CW-Ownable rights of a collection to a new address. Transfer proposal will be sent to the new owner. (CW721 and CW404 collections only) Lighthouse Core should be the owner of the collection to execute this command.

$ lighthouse collection ownership transfer-cw-ownable-ownership <address> <new-owner>
  • <address>: The address of the collection contract.
  • <new-owner>: The address of the new owner.

Options​

  • -g --gas-price <gas_price>: Gas price to use for transaction (default: 0.1)

accept-cw-ownable-ownership​

Accept the CW-Ownable ownership transfer of a collection. (CW721 and CW404 collections only) The new owner should execute this command to accept the ownership transfer.

$ lighthouse collection ownership accept-cw-ownable-ownership <address>
  • <address>: The address of the collection contract.

Options​

  • -g --gas-price <gas_price>: Gas price to use for transaction (default: 0.1)

update-nft-contract-admin​

Transfer contract admin rights of a collection to a new address. New owner can migrate and alter the collection code. For ERC721 collections, Minter role will be transferred to the new owner. Lighthouse Core should be the owner of the collection to execute this command.

$ lighthouse collection ownership update-nft-contract-admin <address> <new-admin>
  • <address>: The address of the collection contract.
  • <new-admin>: The address of the new admin.

Options​

  • -g --gas-price <gas_price>: Gas price to use for transaction (default: 0.1)