How many transfers can we make with only 1 MetaMask popup confirmation?

I and my friends have different NFTs in different accounts and we wanted to collect them in the main account by writing a website. When we wrote it, a metamask popup came up for each NFT and it was very tiring. Can we somehow get full authorization with just a popup and perform these operations in the background?

Hi, welcome to the community! :wave:

I think you can share the source code of these NFT contracts.

It depends on a few things. You will need at least one transaction per account, and you will need at least one transaction per ERC721 contract. For all NFTs of the same collection (i.e. same ERC721 contract) of the same account, you can send one transaction doing setApprovalForAll to a contract that can later trigger all transfers it's been allowed for with one single extra transaction.