WalletConnectSwift
WalletConnectSwift copied to clipboard
How to get list of NFTs after successful MetaMask sign in?
Hello dev team,
I've successfully signed in with WalletConnectSwift and as result I get public address with walletInfo:
if let pubAddress = self.walletConnect.session.walletInfo?.accounts[0] {
self.publicAddressButton.setTitle(pubAddress, for: .normal)
}
The problem is that walletInfo doesn't have any info regarding NFTs (e.g. tokenId etc.).
So is it possible to get list of NFTs data connected to public address?
hey @sotrosh can you help me out to get a successful WC example with metamask? to your question, best way so far is to use OpenSea's API to get the list of NFT per address otherwise you need to really just index all the transactions and figure them out one by one.