Skip to main content

qn_verifyNFTsOwner (v2) RPC Method

Confirms ownership of specified NFTs for a given wallet.

Updated on
Nov 2, 2023

qn_verifyNFTsOwner (v2) RPC Method

Please note that this RPC method requires the Token and NFT API v2 bundle add-on enabled on your QuickNode endpoint.

Parameters

array
array
An array with the first element being:
object
A custom object with the following fields:
wallet
string
The wallet address to check for NFTs
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

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
Request
1
curl https://docs-demo.quiknode.pro/ \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"id":67,
5
"jsonrpc":"2.0",
6
"method":"qn_verifyNFTsOwner",
7
"params": [{
8
"wallet": "0x91b51c173a4bdaa1a60e234fc3f705a16d228740",
9
"contracts": [
10
"0x2106c00ac7da0a3430ae667879139e832307aeaa:3643",
11
"0xd07dc4262bcdbf85190c01c996b4c06a461d2430:133803"
12
]
13
}]
14
}'
15
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free