Connect with a cardano wallet

Does anyone know how the marketplace does to link a wallet and thus review the tokens it contains? asks you to send an amount of ADA to an address and thus connects with your wallet and finds out the tokens it has. Any idea how it does this with all known wallets such as Daedalus?