solana-resilience-kit - v1.0.0
    Preparing search index...

    Class CreditRateLimiter

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Credit cost of a method under the configured weights.

      Parameters

      • method: string

      Returns number

    • Attempts to spend credits for method; returns false if the bucket is dry.

      Parameters

      • method: string

      Returns boolean