Class MerkleChallenge<T>

MerkleChallenge is used to represent a merkle challenge for an approval.

Type Parameters

Hierarchy (view full)




challengeTrackerId: string

Tracker ID details for the merkle challenge.

customData: string

Arbitrary custom data that can be stored on-chain.

expectedProofLength: T

The expected proof length of the merkle proof.

maxUsesPerLeaf: T

Whether or not to enforce max uses per leaf. Used to prevent replay attacks.

root: string

The root of the merkle tree.

uri: string

The URI where to fetch the merkle challenge metadata from.

useCreatorAddressAsLeaf: boolean

Whether or not to override any leaf value and use the creator address as the leaf. Used for whitelist trees.


  • Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

    If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

    Type Parameters


    • other: undefined | null | CustomType<U>
    • Optional normalizeNumberTypes: boolean

    Returns boolean