From a677bae49551d91cb622fbd6a4f9361632f18153 Mon Sep 17 00:00:00 2001 From: chrisjleal <184772742+chrisjleal@users.noreply.github.com> Date: Mon, 30 Nov 2026 23:14:00 -0600 Subject: [PATCH] NFT holder check accepts any token from a collection Leave out tokenId on an ERC721 check to accept any token from the collection. ERC1155 still needs the token id. --- openapi/public-api.json | 6 +++--- verification/nft-ownership.mdx | 17 ++++++++++++++--- verifiers/schemas/nft-ownership.json | 4 ++-- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/openapi/public-api.json b/openapi/public-api.json index 8dd3200..104c3a0 100644 --- a/openapi/public-api.json +++ b/openapi/public-api.json @@ -1159,8 +1159,7 @@ "VerifierData_nft_ownership": { "type": "object", "required": [ - "contractAddress", - "tokenId" + "contractAddress" ], "oneOf": [ { @@ -1185,7 +1184,8 @@ }, "tokenId": { "type": "string", - "minLength": 1 + "minLength": 1, + "description": "One token. Omit for ERC721 to accept any token from the collection; required for ERC1155." }, "tokenType": { "type": "string", diff --git a/verification/nft-ownership.mdx b/verification/nft-ownership.mdx index 7c456dc..f395841 100644 --- a/verification/nft-ownership.mdx +++ b/verification/nft-ownership.mdx @@ -1,7 +1,7 @@ --- title: NFT holder sidebarTitle: NFT -description: "Confirm a wallet holds a specific NFT before you grant access." +description: "Confirm a wallet holds an NFT from a collection, or one specific NFT, before you grant access." icon: image --- @@ -14,13 +14,24 @@ Lookup. Proofable reads on-chain ownership. | Field | Required | Notes | |------|----------|-------| | `contractAddress` | Yes | NFT contract or mint | -| `tokenId` | Yes | Token ID | +| `tokenId` | For ERC1155 | One token. Leave it out on ERC721 to accept any token from the collection | | `chainId` or `chain` | Yes | Chain ID or CAIP-2 chain | | `tokenType` | No | `erc721` (default) or `erc1155` | | `ownerAddress` | No | Wallet to check; defaults to the signer | | `blockNumber` | No | Check ownership at a specific block | -## Example +## Examples + +Any token from the collection (ERC721): + +```json +{ + "contractAddress": "0x...", + "chainId": 8453 +} +``` + +One specific token: ```json { diff --git a/verifiers/schemas/nft-ownership.json b/verifiers/schemas/nft-ownership.json index 65fadb5..f24014d 100644 --- a/verifiers/schemas/nft-ownership.json +++ b/verifiers/schemas/nft-ownership.json @@ -36,6 +36,7 @@ "type": "string" }, "tokenId": { + "description": "One token. Omit for ERC721 to accept any token from the collection; required for ERC1155.", "minLength": 1, "type": "string" }, @@ -49,8 +50,7 @@ } }, "required": [ - "contractAddress", - "tokenId" + "contractAddress" ], "title": "nft-ownership", "type": "object"