Buy
Description: This function allows a user to buy an NFT listed for sale in the marketplace by transferring the required amount of tokens to the seller and the royalty receiver, if applicable.
Method header:
Parameters:
Parameter Type
Parameter Name
Parameter Description
address
_nftAddress
The address of the NFT contract.
uint256
_tokenId
The ID of the NFT to be purchased.
Last updated