BuyForGift

Description: This function allows a user to buy multiple NFTs listed for sale and gift them to another address.

Method header:


function buyForGift(address _nftAddress, uint256[] calldata _tokenIds, address _transferTo) public nonReentrant

Parameters:

Parameter TypeParameter NameParameter Description

address

_nftAddress

The address of the NFT contract.

uint256[] calldata

_tokenIds

An array of NFT IDs to be purchased.

address

_transferTo

The address to which the purchased NFTs will be transferred.

Last updated