Skip to content

Add NFT gate status checker #290

Description

@Kingsman-99

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

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions