curby-js-client
CtrlK
  • index
  • classes
    • Client
    • DIRNGClient
    • InvalidPrecom
  • functions
    • byteHelper
    • checkValidPrecommitmentValue
    • extractRandomness
    • getPrecommitmentValue
    • pulsesToRoundData
    • timeToNext
    • usesDeterministicAlgorithm
    • validateBellResponse
    • validateSeed
    • validateSeedOrdering
    • wait
    • withValidations
    • xorArrays
    • zip
  • interfaces
    • ByteHelper
  • type-aliases
    • ClientOptions
    • DIRNGClientOptions
    • LatestPulsePair
    • NumberArray
    • PulsePair
    • RandomnessRound
    • RoundData
    • RoundValidations
    • Validation
    • WaitOptions
  • variables
    • CHAINS
    • CURBY_API_URL
Powered by GitBook
On this page
  • Function: timeToNext()
  • Parameters
  • Returns
  • Defined in
  1. functions

timeToNext

@buff-beacon-project/curby-client • Docs


@buff-beacon-project/curby-client / timeToNext

Function: timeToNext()

timeToNext(obj?): number

Time until next rng pulse in milliseconds

Parameters

Parameter
Type
Description

obj?

null | string | number | Pulse | object

A timestamp, pulse, or object with a timestamp property

Returns

number

Time until next pulse in milliseconds

Defined in

src/timing.ts:12

PreviouspulsesToRoundDataNextusesDeterministicAlgorithm

Last updated 8 months ago