@me2em/solana
    Preparing search index...

    Function nextPaymentIndex

    • Chain-scoped index allocation from used derivation paths (v1.2 ยง2.2): paths this package cannot parse are ignored; an empty input โ€” or one empty after filtering โ€” yields 0; otherwise max(indexes) + 1, so holes are never reused. Pure function โ€” the caller persists the used paths (from attestation subjectWalletPath values), neither the tree nor the adapter keeps state.

      Parameters

      • usedPaths: string[]

      Returns number

      if usedPaths is not an array.