Skip to main content

Check if the user is the owner of an NFT. Works for both ERC721 and ERC1155

GET 

/:network/nft/is-owner

Check if the user is the owner of an NFT. Works for both ERC721 and ERC1155

Request

Path Parameters

    network stringrequired

    Blockchain network name or chain id

Query Parameters

    token_address stringrequired

    The contract address of the ERC721 or ERC1155 token.

    owner stringrequired

    The ENS name or address of the owner.

    token_id numberrequired

    The token ID for which the token URI is requested.

    block_height number

    Optional block number for which the balance is requested. Provide only block height or timestamp you want to check for.

    date string

    Optional Date timestamp for which the balance is requested (ISO 8601 format). Provide only block height or timestamp you want to check for.

    projectId stringrequired

    The id of your project. Can be found in your Histori dashboard.

Responses

Boolean indicating if the user is the owner of the NFT.

Schema

    network_name stringrequired

    Blockchain network name For the requested query

    chain_id numberrequired

    The chain ID of the network.

    is_owner booleanrequired

    A boolean indicating whether the address owns the specified token.

    owner stringrequired

    The owner address of the NFT.

    token_id numberrequired

    The token ID for the specific NFT.

    checked_at_block numberrequired

    The block number for which the allowance is requested.

    checked_at_date stringrequired

    Timestamp for which the allowance is queried (ISO 8601 format).

Loading...