Labels: complexity: high
Implement checkNftGate(creatorAddress) in the SDK that queries the configured NFT gate contract and returns whether the given address holds a qualifying NFT. Should be called before createInvoice when the contract has an NFT gate configured.
Acceptance criteria:
checkNftGate(address) returns { gated: boolean, hasNft: boolean, contractAddress: string | null }
- Returns
{ gated: false } when no NFT gate is configured
- Caches result for 30 seconds to avoid redundant RPC calls
- Exported with full TypeScript types
Labels: complexity: high
Implement
checkNftGate(creatorAddress)in the SDK that queries the configured NFT gate contract and returns whether the given address holds a qualifying NFT. Should be called beforecreateInvoicewhen the contract has an NFT gate configured.Acceptance criteria:
checkNftGate(address)returns{ gated: boolean, hasNft: boolean, contractAddress: string | null }{ gated: false }when no NFT gate is configured