How to authorize a smart contract to give away my NFTs to my users?

Is there a function on Moralis that will authorize a smart contract to give away my NFTs to my users? Something like ¨ approve" as I know there is an approve function somewhere but I don´t know how to use it.

As long as I know I need to sign in with my Metamask and authorize the smart contract to do it.

Can you guys give me any samples that I can use with ERC1155?

Is there a function on Moralis that will authorize a smart contract to give away my NFTs to my users?

No, this needs to be implemented at a smart contract level. You could have your users call a mint function that uses _mint which gets an NFT transferred to their address.

As long as I know I need to sign in with my Metamask and authorize the smart contract to do it.

You can set up a different function that uses _mint that only your wallet/address (e.g. contract owner) is allowed to call, to mint NFTs to users.

1 Like