A simple marketplace APT transfer #44
-
I don't have a full fledged marketplace. It is very basic, people can't list or borrow. They can just buy character (NFTs) from our predefined listings. I want something as basic as On Buy -> APT from User's wallet to Pubisher wallet I've seen examlpes of vaults, but I think that is too much for such a simple usecase. The only issue is the publisher/admin can't sign, while sending tokens to ther user. While this works If someone can help me with something very simple and easy to implement here, I will be really thankful! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Unlike Solana, in Aptos pubkey and address are different things and we only work with address, you need to do |
Beta Was this translation helpful? Give feedback.
-
modules published under resource accounts (EOAs) can retrieve and then store their own signer_cap for use later:
then inside of the module that creates/mints the token (and checks signer is admin), you can transfer the ownership of the token(nft) to the user:
for a more complicated example about how to manage the module's signer_cap see: package_manager |
Beta Was this translation helpful? Give feedback.
modules published under resource accounts (EOAs) can retrieve and then store their own signer_cap for use later: