Collection Royalties on Alto Market
How to make your collection royalty ready for Alto Market
Last updated
How to make your collection royalty ready for Alto Market
Last updated
Alto supports ERC-2981 and strongly recommends that NFT contracts incorporate this into their code upon deployment.
Openzeppelin provides an easy reference royalty integration here: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/common/ERC2981.sol
If your NFT collection does not support ERC2981, you can optional set royalties by creating an override and linking it to the Open Royalty registry, Alto has deployed the Manifold Royalty Registry on Canto at: 0x5829c7eAc45059bF33164D3E0B7B4Dd945f32782
To easily deploy your own factory and link it to the registry please complete the following steps:
Make sure to connect your wallet (Metamask) used to deploy your NFT.
Enter the royalty percentage basis points (bps), 100 bps = 1%. And the address which should receive the royalties. Keep in mind that royalties can be paid in any token on Canto or in CANTO. So the receiving address should be able to receive ERC20 tokens and CANTO.
Once youβre happy with the settings, deploy this by clicking βWriteβ and following the instructions in Metamask.
Now head over to the Royalty Registry and link the Override to your NFT contract:
Enter the Address of your NFT contract, and then the address of the override created in Step 1. Confirm by clicking βWriteβ and follow the instructions in Metamask.
If you get an error message or difficulty estimating gas this is likely due to not using the wallet used to deploy the NFT or not having correct ownership of the NFT contract. Please contact Alto through their discord to link the contracts.
Under 3. getRoyaltyView, enter the NFT contract address, any valid NFT ID (default 1) and an amount (check with at least 1000 to correct for rounding). Click βQueryβ ensure the below is correct.