- Base Contract: Your contract must extend the CW721 Metadata Onchain contract from Public Awesome.
- Minting Function: The contract must include a minting function that allows Crossmint to mint NFTs on behalf of users.
-
Minter Ownership: The CW721 Metadata Onchain contract supports updating minter ownership to allow Crossmint to execute minting messages. This is implemented through the
update_minter_ownership
function which can be called to add or remove minting permissions.
Make sure your contract is properly tested and audited before deployment. While the base CW721-metadata-onchain
contract is audited, any custom extensions you add should be thoroughly tested.
msg: ExecuteMsg
format will be like:
- On-chain metadata storage
- Standard NFT operations (mint, transfer, approve, etc.)
- Built-in metadata types and validation
Updating Minter Ownership
To allow Crossmint to mint NFTs on your behalf, you need to update the minter ownership of your contract. This is done using theupdate_minter_ownership
function.
Command
Parameters
Replace the following placeholders:<your-contract-address>
- Your deployed contract addressCROSSMINT_ADDRESS
- Crossmint’s address (see below)<your-wallet>
- Your wallet name
Crossmint Addresses
Use the appropriate address based on your environment:Environment | Address |
---|---|
Staging Testnet | xion1sky4jrvn7s3u9wetshrutkmuuuu6jcwfju6qmt |
Production Mainnet | xion162pp2eunext5skljzsshhzwjpkce9d3eceyr8z |
get_minter_ownership
upon your contract, and if the pending_owner
address, matches the environment <CROSSMINT_ADDRESS>
, the following message will be executed on your contract
Registering Your Contract
To register your Xion contract with Crossmint:- Deploy your contract to the Xion network
- Go to the Crossmint Console
- Navigate to “Token Collections”
- Click “New Collection”
- Select “Xion” as the blockchain
- Enter your contract address
- Follow the remaining steps in the wizard