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
Blockchain network name or chain id
Query Parameters
The contract address of the ERC721 or ERC1155 token.
The ENS name or address of the owner.
The token ID for which the token URI is requested.
Optional block number for which the balance is requested. Provide only block height or timestamp you want to check for.
Optional Date timestamp for which the balance is requested (ISO 8601 format). Provide only block height or timestamp you want to check for.
The id of your project. Can be found in your Histori dashboard.
Responses
- 200
- 400
- 404
Boolean indicating if the user is the owner of the NFT.
- application/json
- Schema
- Example (from schema)
Schema
Blockchain network name For the requested query
The chain ID of the network.
A boolean indicating whether the address owns the specified token.
The owner address of the NFT.
The token ID for the specific NFT.
The block number for which the allowance is requested.
Timestamp for which the allowance is queried (ISO 8601 format).
{
"network_name": "eth-mainnet",
"chain_id": 1,
"is_owner": true,
"owner": "0xd5470BaFb6074B10107b303D0cCe03cA5539b6E3",
"token_id": 1,
"checked_at_block": 20853281,
"checked_at_date": "2024-10-17T09:03:59.000Z"
}
Invalid contract or token ID.
Failed to verify token ownership.