verifyNftOwnership - SDK
Checks that the provided owner address owns one or more of the provided NFTs. Returns a boolean indicating whether the owner’s address owns the provided NFT.
Don’t have an API key?
Start using this method in your app today. Get started for free
Description
Checks that the provided owner address owns one or more of the provided NFTs. Returns a boolean indicating whether the owner’s address owns the provided NFT.
Parameters
Response
Example Request and Response
Prerequisite: You will need to install the Alchemy SDK before making requests with it.
The commands for installing it using npm or yarn are given below:
Request
Response
Use Cases
Here are some potential use cases for the verifyNftOwnership
method:
-
Authenticating ownership during a transaction: When a user wants to sell their NFT, the
verifyNftOwnership
method can be used to ensure that the seller is the rightful owner of the NFT. This helps prevent fraudulent transactions. -
Proving ownership for insurance or legal purposes: In cases where the ownership of an NFT is disputed, the
verifyNftOwnership
method can be used to prove ownership. This can be useful in legal cases or when purchasing insurance for the NFT. -
NFT lending or borrowing: NFT owners may want to lend their NFTs to others for a fee or borrow NFTs from others. The
verifyNftOwnership
method can be used to verify ownership before entering into such agreements.
Related Methods
Here are the methods related to verifyNftOwnership
:
-
getOwnersForNft: Gets all the owners for a given NFT contract address and token ID.
-
getNftsForOwner: Get all NFTs for an owner.