Join AWS, Dust Labs & OrangeDAO at QuickPitch. Win $80k — Apply Today.

Contents

qn_verifyNFTsOwner RPC Method

The API credit value for this method is 4 . To learn more about API credits and each method's value, visit the API Credits page.

Please note that this RPC method requires the NFT Fetch Tool add-on enabled on your QuickNode endpoint. This method is currently supported on ERC-721 and ERC-1155 compliant contracts (on Ethereum mainnet).

Parameters:

  1. wallet - string - The wallet address to check for NFTs
  2. contracts - string - The list of ERC-721 and/or ERC-1155 NFT contract addresses, suffixed with :tokenIdto specify a specific ID. For example, providing the value 0x2106c...7aeaa:1234will verify ownership of Loopy Donuts' NFT token with ID 1234. You may include up to 20 contract addresses per request

Returns:

  1. object - The 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:

import requests
import json

url = "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/"

payload = json.dumps([
  {
    "id": 67,
    "method": "qn_verifyNFTsOwner",
    "params": [
      "0x91b51c173a4bdaa1a60e234fc3f705a16d228740",
      [
        "0x2106c00ac7da0a3430ae667879139e832307aeaa:3643",
        "0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803"
      ]
    ]
  }
])
headers = {
  'Content-Type': 'application/json',
  'x-qn-api-version': '1'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
Ready to get started? Create a free account