🚀 We’re excited to announce our $35m Series A led by Tiger Global: Press Release, Coindesk, Bloomberg, Business Insider & RefreshMiami!

Contents

qn_verifyNFTsOwner RPC method

Currently supports both ERC-721 and ERC-1155 compliant contracts.

Parameters:

  1. string - The wallet address to check for NFTs.
  2. array - List of ERC-721 and/or ERC-1155 NFT contract addresses, suffixed with :tokenId to specify a specific ID. For example, providing the value 0x2106c...7aeaa:1234 will verify ownership of Loopy Donuts' NFT token with ID 1234.

Returns:

  1. Object - Custom Response Object:

    owner - The wallet address we checked for NFTs.

    assets - An array of owned NFTs for the the provided wallet, in the same format as the inputted array. If an inputted array isn't returned, then it does not belong to the wallet.

Code Examples:

from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/'))
resp = w3.provider.make_request('qn_verifyNFTsOwner', ["0x91b51c173a4bdaa1a60e234fc3f705a16d228740", ["0x2106c00ac7da0a3430ae667879139e832307aeaa:3643", "0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803"]])
print(resp)
Ready to try QuickNode? Start your 7-day free trial