Hook for buying a direct listing on a Marketplace V3 smart contract.
If the listing is in a currency that is not native to the chain (e.g. not Ether on Ethereum), the hook will prompt the user to approve the marketplace contract to spend the currency on their behalf before performing the buy.
Mutation object to buy out a direct listing
The mutation function accepts an object as argument with the following properties:
The ID of the direct listing you want to buy.
The amount of tokens you want to buy from the listing.
Applicable for ERC1155 listings only, should always be
1 for ERC721 listings.
Specify a different wallet address to buy the listing for.