How can I direct NFT royalties to a smart contract on Elrond?

Hey everyone, I need some help with my NFT project on Elrond!

I’m working on a collection and want to set up the royalties in a specific way. Right now, they’re going straight to my wallet, but I’d really like them to go to a smart contract instead.

The thing is, Elrond’s NFT setup automatically sends royalties to the creator. I’ve looked around but can’t figure out how to change the creator once an NFT is minted.

Does anyone know if it’s possible to change the creator after minting? Or should I just mint the NFTs directly from the smart contract I want to receive the royalties?

Any tips or ideas would be super helpful. Thanks in advance!

yo hugo, been there done that! minting from the smart contract is ur best bet. it’s a bit tricky but works like a charm. just make sure ur contract can handle minting and royalties smoothly. test it tons before going live tho, cuz fixing stuff later is a pain. good luck with ur project dude!

I’ve encountered a similar challenge with NFT royalties on Elrond. From my experience, changing the creator after minting isn’t currently possible within Elrond’s NFT framework. Your best bet is to mint the NFTs directly from the smart contract you want to receive the royalties. This approach ensures that the royalties are directed to the desired contract from the outset.

To implement this, you’ll need to set up your smart contract with the necessary functions to handle minting and royalty distribution. Make sure to thoroughly test the contract before deploying it to the mainnet. You might also want to consider implementing a mechanism within the contract to allow for future adjustments to royalty distribution, if that aligns with your project’s goals.

Remember to factor in gas costs when minting from a contract, as it may be slightly more expensive than minting directly from a wallet.

hey there hugo! that’s a really interesting question about nft royalties on elrond. i’ve been tinkering with some similar ideas lately too.

have you considered using a proxy contract? it might be a workaround for what you’re trying to do. you could set up a smart contract that acts as an intermediary between the nft sales and your desired destination for the royalties. essentially, you’d create a proxy contract, set that contract as the creator/royalty recipient when minting, and then program the proxy to automatically forward royalties to your main contract.

i’m not 100% sure if this would work perfectly on elrond, but it’s definitely worth looking into since it could give you more flexibility without having to change the creator after minting.

what do you think about this approach? have you tried anything like it before? i’d be super curious to hear your thoughts!