Headers:
x-qn-api-version
— (Integer - optional) Provide an optional request header specifying the QuickNode API version you're targeting. Using this header is recommended as it will become mandatory (required) in the future. Current API version is 1
.
Parameters:
: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
.
You may include up to 20 contract addresses per request.
Returns:
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:
# The ethereum.rb library does not support including additional request headers, so you won't be able to add the x-qn-api-version header. require 'ethereum.rb' client = Ethereum::HttpClient.new('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/') response = client.send_command( 'qn_verifyNFTsOwner', [ '0x91b51c173a4bdaa1a60e234fc3f705a16d228740', [ '0x2106c00ac7da0a3430ae667879139e832307aeaa:3643', '0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803' ] ] ) puts response['result']
from web3 import Web3, HTTPProvider OPTIONS = { 'headers': { 'x-qn-api-version': '1' } } w3 = Web3(HTTPProvider('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/', request_kwargs=OPTIONS)) resp = w3.provider.make_request('qn_verifyNFTsOwner', ["0x91b51c173a4bdaa1a60e234fc3f705a16d228740", ["0x2106c00ac7da0a3430ae667879139e832307aeaa:3643", "0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803"]]) print(resp)
const ethers = require("ethers"); (async () => { const provider = new ethers.providers.JsonRpcProvider("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/"); provider.connection.headers = { "x-qn-api-version": 1 }; const heads = await provider.send("qn_verifyNFTsOwner", [ "0x91b51c173a4bdaa1a60e234fc3f705a16d228740", [ "0x2106c00ac7da0a3430ae667879139e832307aeaa:3643", "0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803", ], ]); console.log(heads); })();
curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ -X "POST" \ -H "Content-Type: application/json" \ -H "x-qn-api-version: 1" \ -d $'[ { "id": 67, "method": "qn_verifyNFTsOwner", "params": [ "0x91b51c173a4bdaa1a60e234fc3f705a16d228740", [ "0x2106c00ac7da0a3430ae667879139e832307aeaa:3643", "0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803" ] ] } ]'