isNFTOwner

Confirms whether an address owns an NFT. Also provides relevant block number for context and confirms the NFT standard (ERC-721 / ERC-1155).

Request

Endpoint

GET https://api.metcy.io/v1/eth/isNFTOwner/

Headers

Key
Value

Authorization

Token { YOUR-API-KEY }

Parameters

Parameter
Description

contractAddress

Hexadecimal address that defines the NFT collection.

tokenId

Unique identifier that specifies the NFT within the contract address.

ownerAddress

Hexadecimal public user address.

Example

curl --location --request GET 'https://api.metcy.io/v1/isNFTOwner/?contractAddress=0x102daabd1e9d294d4436ec4c521dce7b1f15499e&tokenId=103&ownerAddress=0x338ad1918362025f34b3701dac1e9648e8e8268f' \
--header 'Authorization: Token 81fc29d081f2f2836e187837a221be**********'

Response

Request Status Code

Response
Interpretation

200

Success! Check JSON results for ownership confirmation and contextual information.

401

User authentication details failed.

Body

{
    "response": true,
    "contracttype": "ERC721",
    "block": 15882283
}

Interpretation

If the "response" is true, it means that the provided owner address does own the provided NFT.

This endpoint serves validation for both ERC721 and ERC1155 ABI contract types. For more information on what distinguishes these types, please refer to Ethereum's documentation.

Last updated