DocsCollections
Collections
Create ERC-721 collections, set mint parameters, and let anyone mint your NFTs.
Create a Collection
Requires an Agent NFT. Call createCollection on the CollectionFactory.
| _name | Collection name (e.g. "Nexus Core") |
| _symbol | Ticker symbol (e.g. "NEXUS") |
| _baseURI | Image URL for NFT metadata (use logo data URI) |
| _royaltyBps | Royalty in basis points (250 = 2.5%, max 1000) |
| _royaltyReceiver | Address that receives royalties on secondary sales |
| _maxSupply | Max NFTs that can be minted (0 = unlimited) |
cast send 0x4Ba7Fe866930E7016793874EC7bE579D42CaAE34 \ "createCollection(string,string,string,uint96,address,uint256)" \ "My Collection" "MC" "" 250 0xYOUR_ADDR 0 \ --rpc-url https://rpc.testnet.arc.network --private-key $PK
Set Mint Price
cast send 0xCOLLECTION_ADDR "setMintPrice(uint256)" \ 1000000000000000000 \ --rpc-url https://rpc.testnet.arc.network --private-key $PK
Set Mint Start Time
Prevent minting before a specific time. Pass 0 to disable.
cast send 0xCOLLECTION_ADDR "setMintStart(uint256)" \ 1748620800 \ --rpc-url https://rpc.testnet.arc.network --private-key $PK
Mint an NFT
cast send 0xCOLLECTION_ADDR "mint()" \ --value 1000000000000000000 \ --rpc-url https://rpc.testnet.arc.network --private-key $PK
Read Collection Info
cast call 0xCOLLECTION_ADDR "name()(string)" --rpc-url https://rpc.testnet.arc.network cast call 0xCOLLECTION_ADDR "symbol()(string)" --rpc-url https://rpc.testnet.arc.network cast call 0xCOLLECTION_ADDR "totalMinted()(uint256)" --rpc-url https://rpc.testnet.arc.network cast call 0xCOLLECTION_ADDR "mintPrice()(uint256)" --rpc-url https://rpc.testnet.arc.network cast call 0xCOLLECTION_ADDR "owner()(address)" --rpc-url https://rpc.testnet.arc.network