AppleSauce
    Preparing search index...

    Type Alias TokenSelectionFunction

    TokenSelectionFunction: (
        tokens: NostrEvent[],
        minAmount: number,
        mint?: string,
    ) => { events: NostrEvent[]; proofs: Proof[] }

    Token selection function type that matches dumbTokenSelection signature. Must return tokens from a single mint and ensure all selected tokens are from that mint. If mint is undefined, the function should find a mint with sufficient balance.

    Type Declaration

      • (
            tokens: NostrEvent[],
            minAmount: number,
            mint?: string,
        ): { events: NostrEvent[]; proofs: Proof[] }
      • Parameters

        • tokens: NostrEvent[]
        • minAmount: number
        • Optionalmint: string

        Returns { events: NostrEvent[]; proofs: Proof[] }